load-tasks-gulp
v0.0.3
Published
load gulp tasks automatically, no need to require every single one of them
Downloads
8
Readme
load-tasks-gulp
Hassle-free task loading. You no need to require every single one of them yourself!
With load-tasks-gulp
you can load all the gulp tasks that are defined in your package.json file.
Install
$ npm install --save-dev load-tasks-gulp
Usage
// Gulpfile.js
require('load-tasks-gulp')();
Examples
// package.json
"devDependencies": {
"gulp-sass": "^2.1.0"
}
// Gulpfile.js
gulp.src('./sass/**/*.scss')
.pipe(sass()
.pipe(gulp.dest('./css'));
]);
As you see, there was no need to require() the gulp-sass
package. That's because it was automatically detected and loaded by load-tasks-gulp since was declared in the package.json file.
Credits
heavily inspired by https://github.com/sindresorhus/load-grunt-tasks
License
MIT