0.8.4 • Published 9 years ago

gulp-load-tasks v0.8.4

Weekly downloads
153
License
MPL-2.0
Repository
github
Last release
9 years ago

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

9 years ago

0.8.3

10 years ago

0.8.2

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

1.0.2

10 years ago

1.0.0

10 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago