Created
May 28, 2015 11:43
-
-
Save valichek/8b9d16924e606ee3ff73 to your computer and use it in GitHub Desktop.
jspm bundle task for gulp
This file contains 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
var gulp = require('gulp'); | |
var paths = require('../paths'); | |
var jspm = require('jspm/api'); | |
gulp.task('bundle', function (done) { | |
jspm.bundle( | |
[ | |
'*', | |
'aurelia-skeleton-navigation/*', | |
'aurelia-bootstrapper', | |
'aurelia-http-client', | |
'aurelia-dependency-injection', | |
'aurelia-router' | |
].join(' + '), | |
'bundle/app-bundle.js', | |
{inject:true, minify: true} | |
).then(function () { | |
gulp.src('./bundle/app-bundle.js') | |
.pipe(gulp.dest(paths.output + 'bundle/')); | |
done(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment