Gruntfile.js
function (grunt, rootPath, tasks) {
		tasks.forEach(function (name) {
			if (name === 'grunt-cli') return;
			var cwd = process.cwd();
			process.chdir(rootPath); // load files from proper root, I don't want to install everything locally per module!
			grunt.loadNpmTasks(name);
			process.chdir(cwd);
		});
	}
function (grunt, rootPath, tasks) {
		tasks.forEach(function (name) {
			if (name === 'grunt-cli') return;
			var cwd = process.cwd();
			process.chdir(rootPath); // load files from proper root, I don't want to install everything locally per module!
			grunt.loadNpmTasks(name);
			process.chdir(cwd);
		});
	}
function ( grunt , rootPath , tasks ) { tasks . forEach ( function ( name ) { if ( name === 'grunt-cli' ) return ; var cwd = process . cwd ( ) ; process . chdir ( rootPath ) ; // load files from proper root, I don't want to install everything locally per module! grunt . loadNpmTasks ( name ) ; process . chdir ( cwd ) ; } ) ; }
Function load the npm tasks from the root path

@method loadTasks
@param grunt {Object} The grunt instance
@param tasks {Array} Array of tasks as string
Function load the npm tasks from the root path