grunt-jspm-builder
Install
$ npm install --save-dev grunt-jspm-builder
Usage
The grunt-jspm-builder provides all jspm production workflows via most SystemJS APIs.
grunt;
Monolithic Bundle
Build a single monolithic bundle including all 3rd party libraries.
grunt;
Extract 3rd party dependencies
Extract all 3rd party dependencies from your project and place them in a separate bundle.
grunt;
Exclude specific bundles or 3rd party dependencies.
Builds the project excluding the specified bundles or source trees using arithmetic and/or module syntax.
grunt;
Create a Common Bundle
Build the dependencies in common between 2 modules including all project-level and 3rd party dependencies.
grunt;
Bundle Dependencies between 2 or More Source Trees
Compare 2 or more bundles using arithmetic, extract their common dependencies and place them in a separate bundle and then build all the bundles.
grunt;
Options
All available options follow those used on SystemJS builds.
sfx
Default: true
Creates a single self-executing bundle for a module (Not available using bundle arithmetic).
minify
Default: true
Use minification, defaults to true.
mangle
Default: true
Use mangling with minification, defaults to true
sourceMaps
Default: false
include or exclude source maps in the build, defaults to false
injectConfig
Default: false
When true, inject the bundle tree into the configuration file. This is especially important when building one or more common bundles.
License
MIT © Justin Wilaby