Skip to content

Instantly share code, notes, and snippets.

@akre54
Last active October 27, 2015 13:23
Show Gist options
  • Save akre54/d7ebd8893128e4bf9235 to your computer and use it in GitHub Desktop.
Save akre54/d7ebd8893128e4bf9235 to your computer and use it in GitHub Desktop.
Backbone deps test
node_modules
out.js
#!/usr/bin/env node
var fs = require('fs'),
browserify = require('browserify');
browserify(['./index.js'])
.exclude('jquery')
.bundle()
.pipe(fs.createWriteStream(__dirname + '/out.js'));
var Backbone = require("backbone"),
NativeView = require("backbone.nativeview");
console.log(new NativeView);
{
"name": "dep-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Adam Krebs <[email protected]> (http://sberkmada.com/)",
"license": "MIT",
"dependencies": {
"backbone": "1.2.0",
"backbone.nativeview": "^0.3.3"
},
"devDependencies": {
"browserify": "^9.0.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment