2016 Update
The official tools for npm install --save-dev aurelia-bundler aurelia applications can be installed via npm using npm install --save-dev aurelia-bundler .
After installation, you can configure the gulp task to handle the bundle / unsundle process. A basic example of a task is as follows:
build / tasks / bundle.js
var gulp = require('gulp'); var bundler = require('aurelia-bundler'); var config = { bundles: { 'dist/app-build': { includes: [ '**/*.js' ], options: { minify: true } } } }; gulp.task('bundle', ['build', 'unbundle'], function() { return bundler.bundle(config); }); gulp.task('unbundle', function() { return bundler.unbundle(config); });
I wrote a more detailed article here: http://www.foursails.co/blog/aurelia-bundling/
The official documentation can be found here: https://github.com/aurelia/bundler
Matthew James Davis
source share