Skip to content

Instantly share code, notes, and snippets.

@Rayjax
Last active August 29, 2015 13:59

Revisions

  1. Rayjax renamed this gist Apr 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Rayjax created this gist Apr 14, 2014.
    49 changes: 49 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    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']
    }