Last active
August 29, 2015 14:04
-
-
Save arlando/6381531b0c0fb122c668 to your computer and use it in GitHub Desktop.
Browserify Backbone.Marionette
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"dependencies": { | |
"backbone.marionette": "~2.0.3" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var concat = require('gulp-concat-sourcemap'); | |
gulp.task('libs', function() { | |
gulp.src([ | |
'./bower_components/backbone.marionette/lib/core/backbone.marionette.js' | |
]) | |
.pipe(browserify({ | |
insertGlobals: true | |
})) | |
.pipe(concat('libs.js')) | |
.pipe(gulp.dest('./static/build/')); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"async": "^0.9.0", | |
"body-parser": "^1.5.0", | |
"browserify": "^4.2.3", | |
"browserify-shim": "^3.6.0", | |
"gulp-browserify": "^0.5.0", | |
"gulp-concat-sourcemap": "^1.3.1", | |
}, | |
"browserify": { | |
"transform": [ | |
"browserify-shim" | |
] | |
}, | |
"browser": { | |
"jquery": "./bower_components/jquery/dist/jquery.js", | |
"underscore": "./bower_components/underscore/underscore.js", | |
"backbone": "./bower_components/backbone/backbone.js", | |
"backbone.babysitter": "./bower_components/backbone.babysitter/lib/backbone.babysitter.js", | |
"backbone.wreqr": "./bower_components/backbone.wreqr/lib/backbone.wreqr.js", | |
"backbone.marionette": "./bower_components/backbone.marionette/lib/core/backbone.marionette.js" | |
}, | |
"browserify-shim": { | |
"jquery": "$", | |
"underscore": "_", | |
"backbone": { | |
"exports": "Backbone", | |
"depends": [ | |
"jquery:$", | |
"underscore:_" | |
] | |
}, | |
"backbone.babysitter": { | |
"exports": "Backbone.Babysitter", | |
"depends": [ | |
"backbone:Backbone" | |
] | |
}, | |
"backbone.wreqr": { | |
"exports": "Backbone.Wreqr", | |
"depends": [ | |
"backbone:Backbone", | |
"underscore:_" | |
] | |
}, | |
"backbone.marionette": { | |
"exports": "Marionette", | |
"depends": [ | |
"jquery:$", | |
"underscore:_", | |
"backbone:Backbone", | |
"backbone.wreqr:Backbone.Wreqr", | |
"backbone.babysitter:Backbone.Babysitter" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment