Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

rummik/gulp-load-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published