Package Exports
- gulp-param
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-param) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-param
Add params to your tasks
GulpParam injects arguments from the command line into your tasks.
Installation
npm install gulp-param
Usage
var gulp = require('gulp-param')(require('gulp'), process.argv);
gulp.task('dep', function(debug) {
console.log(debug); // => true
});
gulp.task('build', ['dep'], function(debug, version) {
console.log(debug); // => true
console.log(version); // => 'v1.0.0'
});
// $ gulp build --debug --version v1.0.0