Loads a bunch of Node.js modules by a given prefix.
npm install --save bunchitos
// Loads all gulp plugins var plugins = require('bunchitos')('gulp-'); plugins.jshint();
The prefix that defines which modules should be required (e.g. "gulp-" will load all "gulp-*" modules whereas "grunt-" will load all grunt modules). If you don't define a prefix, all modules will be loaded. Note that the return object will have all the module names as camel cased properties (e.g. gulp-minify-css -> minifyCss).
fsOnly (optional; default=false)
The dependency reference is by default the
package.json. If this flag is true, then the dependencies will be searched only within the
node_modules directory without checking the
If you want to run the unit tests, please note that you have to trigger them via NPM in this project.
This is because I had to modify the
NODE_PATH so that
bunchitos is able to fetch the internal "test modules" in the directory