Broccoli SystemJS Builder
The broccoli-systemjs-builder plugin providers a thin wrapper around the SystemJS Builder.
Unlike broccoli-system-builder, this project aims to efficiently incrementally recompile.
Installation
npm install broccoli-systemjs-builder --save-dev
Usage
var SystemBuilder = require('broccoli-systemjs-builder');
var outputNode = new SystemJSBuilder(inputNode, baseURL, configPaths, fn);
-
inputNode
: Input node for System Builder.
-
baseURL
: Relative path of the base JSPM folder.
-
configPaths
: Array of systemjs configuration files.
-
fn
: Callback function to setup SystemJS Build. See here for usage details.
Example
var outputNode = new SystemJSBuilder(inputNode, '/', ['system.config.js'], function( builder ) {
builder.config({
meta: {
'resource/to/ignore.js': {
build: false
}
}
});
return builder.buildStatic('myModule.js', 'outfile.js');
});