0.0.3 • Published 9 years ago

load-grunt-plugins-from-parent v0.0.3

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

load-grunt-plugins-from-parent v0.0.1

Purpose

So you can have lots of sub projects with gruntfiles, and keep all your grunt tasks in the root node_modules folder instead of installing them for each project. You just npm install this in your root project directory and then require it before you load any tasks for grunt.

Usage

From the root project directory:

npm install -D load-grunt-plugins-from-parent

Template Gruntfile looks like this:

module.exports = function(grunt){
	require('load-grunt-plugins-from-parent')(grunt);
	
	grunt.loadNpmTasksFromParent('plugin1')
	grunt.loadNpmTasksFromParent('plugin2')
	grunt.loadNpmTasksFromParent('plugin3')
	...
	
	grunt.initConfig({
		...
	});
};