

http://ctrl-d.ro/autor/andreipfeiffer/
pipe support with node-task
grunt.registerTask('customTask', function() {// task logic };
> tasks/customTask.js// use commonJS syntaxmodule.exports = function( grunt ) {grunt.registerTask('customTask', function() {// task logic};};
> Gruntfile.jsgrunt.loadTasks('tasks');// pass folder name, containing tasks
grunt.registerTask('customTask', function() {// setgrunt.config.set('propertyName', 'some data');// getvar name = grunt.config.get('propertyName');};
grunt.initConfig({taskName: '<%= propertyName %>'});