gulp-jspm-nimedev
Gulp functions to bundle files with jspm
Installation
$ npm install gulp-jspm-nimedev
Usage
To bundle only javascript files retated with the app write in gulpfile.js
:
// Require the moduleconst jspmTask = // Get jspm dependencies from package.jsonconst appSetting = const jspmConfig = appSettingjspm // Set options object for jspmTask functionconst options = src: 'app/main.js' dest: 'dist/assets/js' baseName: 'app' ignoreVendors: true // Create a gulp task to bundle js files with sourcemapsgulp
To bundle only depenencies of the app write in gulpfile.js
:
// Require the moduleconst jspmTask = // Get jspm dependencies from package.jsonconst appSetting = const jspmConfig = appSettingjspm // Set options object for jspmTask functionconst options = src: 'app/main.js' dest: '.tmp' baseName: 'dep' onlyVendors: true // Create a gulp task to bundle js dependenciesgulp
Note: src and dest in options objects follow the same rules of gulp.src() and gulp.dest() arguments