0.3.1 • Published 8 years ago
broccoli-systemjs v0.3.1
broccoli-systemjs
Broccoli addon that bundles JavaScript with help of SystemJS Builder.
Usage
Typical to Broccoli addons it takes a tree as first argument and options object as a second.
import SystemJSBuilder from 'broccoli-systemjs';
export default SystemJSBuilder('src', {
systemConfig: {
// put SystemJS loader config here
},
builderConfig: {
// put SystemJS builder config here
},
});Options consist of:
systemConfig- SystemJS ConfigbuilderConfig- SystemJS Builder bundle configannotationfor Broccoli tree
The addon will automatically scan for all files that ends with *.bundle.js and will build static (self executable) bundles for them.
Notes
This addons is pretty much hand tailored for Cliqz Browser Core build pipeline, but should be usable in any other setup. If you are interested in using it, please file a github issue for support.
Compared to other SystemJS broccoli addons, this one is:
- compatible with Broccoli 1.x
- limited to static bundling
- simpler to use (no SystemJS config file required in a tree)
Development
This addon is built with help of raureif. Install raureif with:
npm install -g raureifand build project with:
raureif buildFor more info check raureif readme.