Skip to content

Instantly share code, notes, and snippets.

@valichek
Created May 28, 2015 11:43
Show Gist options
  • Save valichek/8b9d16924e606ee3ff73 to your computer and use it in GitHub Desktop.
Save valichek/8b9d16924e606ee3ff73 to your computer and use it in GitHub Desktop.
jspm bundle task for gulp
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