gulp-jspm
wraps the jspm bundle moduleName
command line.
Usage
var gulp = ;var gulp_jspm = ; // npm install gulp-jspm gulp;
This will generate the demo/build/jspm-bundle.js
file.
This file corresponds to the file generated by the command jspm bundle main
.
Many code snippets shown in this Readme are implemented at demo/gulpfile.js.
Before Opening an Issue
When opening an issue, copy the debug logs in the ticket.
The debug logs are printed when running gulp-jspm
with the verbose option gulp_jspm({verbose: true})
.
Source Map
var sourcemaps = ; gulp ;
Options
// exclude message.js from bundlegulp ; // `jspm bundle-sfx main`gulp ; // `jspm bundle main.jsx!`gulp ; // `jspm bundle main.jsx!jsx`gulp ; // print information logs about the internal progress of `gulp-jspm`gulp ; // rename the bundled filegulp // do not include file extension ; // All other options given to gulp-jspm are passed on to jspm.// All jspm options can therefore be passed to `gulp-jspm`// (`minify`, `mangle`, `lowResSourceMaps`, etc.).// For example:gulp // `jspm bundle main --inject` ;
Original Entry Point
gulp ;
Run Gulpfile Demo
To run the code snippets above execute following commands.
git clone git@githubcom:brillout/gulp-jspmcd gulp-jspm/npm installcd demo/npm installnpm install -g jspmnpm install -g gulpjspm installgulpgulp sourcemapgulp test