gulp-load-tasks
Task loader for Gulp
Last updated 4 years ago by rummik .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-load-tasks 
SYNC missed versions from official npm registry.

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'
]];

Current Tags

  • 0.8.4                                ...           latest (4 years ago)

3 Versions

  • 0.8.4                                ...           4 years ago
  • 0.8.3                                ...           5 years ago
  • 0.8.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |