Skip to content

platdesign/pd-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#pd-gulp

A little project to make working with gulp a bit more comfortable.

Idea

I love gulp, but the configuration is a glorious mess. So i decided to create task-handler-generators. They could be transfered to own modules. The base idea was sth. like this:

function taskGenerator(config) {
	
	return function gulpTaskHandler(cb) {
		// do the gulp stiff
	}
}
	
gulp.task('default', taskGenerator({
	
}));

I like the way grunt configures its plugins. So i wanted to have the same possibility to write multiple configuration-blocks for each generator and global options.

var config = {
	options: {
		banner: '/* <%= pkg.name %> - by <%= pkg.author %> */'
	},
	assets: {
		src:'./src/*.js',
		dest: './dist
	},
	customLib: {
		src:'./myLib/src/myLib.js',
		dest: './myLib/dist'
	}
};

There was a lot of boilerplate-code for each generator to achieve this for each generator. The result was to write a pd-gulp-task-generator-generator which handles all this boilerplate stuff and makes it easy to create custom generators.

pd-gulp generators

A little generator to start a project with gulp. Asks which module should be included and creates a gulpfile with a little base configuration.

About

Namespace for gulp-task-generators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published