Package Exports
- gulp-load-tasks
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-load-tasks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Gulp Load Tasks
Loads gulp tasks from a local directory (usually tasks/
), rather than from
your Gulpfile.
Usage
In your Gulpfile.js
:
// Tasks are in `tasks/`
require('gulp-load-tasks')();
// Load from a different directory:
// require('gulp-load-tasks')('gulp_tasks');
tasks/uglify.js
:
var gulp = require('gulp');
var uglify = require('gulp-uglify');
module.exports = function() {
return gulp.src('lib/**/*.js')
.pipe(uglify())
.pipe(gulp.dest('dist'));
};
tasks/default.js
:
// Double-brackets required, since the array gets passed directly to `gulp.task()`
module.exports = [[
'uglify'
]];