js.node.grunt.config.helper
Node.js Grunt Config Helper Class to Help with Grunt configs and tasks.
npm
npm install --save-dev js.node.grunt.config.helper
Example
Extend Grunt Config Jit Environment
Using the Extend functionality in a jit-grunt Environment like:
Project/ |build/ | |helper/ | |_grunt/ | |task_name/ | | |tasks1.js | | |tasks2.js | |task_name.js |Gruntfile.js
Extend task_name.js
with task1.js
and task2.js
from task_name/
directory.
task_name.js
filename must be the task name of the Grunt Plugin.
// task_name.jsmodule { const path = ; const GruntConfigHelper = ; const requireDirectory = path; const extendConfigHelper = requireDirectory; const tasks = extendConfigHelper;};
Extend Grunt Config in standard Gruntfile.js Environment
Using the Extend functionality in a standard Grunt Environment:
Project/|build/| |helper/| |_grunt/| |task1.js| |task2.js|Gruntfile.js
Extend Gruntfile.js
with task1.js
and task2.js
by filename.
task1.js
and task2.js
filename must be the task name of the Grunt Plugin.
// Gruntfile.jsmodule { const path = ; const GruntConfigHelper = ; const requireDirectory = path; const extendConfigHelper = requireDirectory true; const tasks = extendConfigHelper; // Project configuration. grunt ...