Skip to content

Instantly share code, notes, and snippets.

@Rayjax
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rayjax/10646251 to your computer and use it in GitHub Desktop.
Save Rayjax/10646251 to your computer and use it in GitHub Desktop.
browserify: {
lib: {
src: ['client/lib/*.js'],
dest: 'client/build/lib.js',
options: {
shim: {
jquery: {
path: 'client/lib/jquery-1.11.0.js',
exports: '$'
},
'jquery.mobile': {
path: 'client/lib/jquery.mobile-configured.js',
exports: null,
depends: {
jquery: '$'
}
},
underscore: {
path: 'client/lib/underscore.js',
exports: '_'
},
backbone: {
path: 'client/lib/backbone.js',
exports: 'Backbone',
depends: {
underscore: 'underscore',
jquery: '$'
}
},
'backbone-nested': {
path: 'client/lib/backbone-nested.js',
exports: null,
depends: {
jquery: '$',
backbone: 'Backbone',
underscore: '_'
}
}
}
}
},
app: {
files: {
'client/build/app.js': ['client/app/**.js']
},
options: {
transform: ['node-underscorify'],
external: ['jquery', 'underscore', 'backbone']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment