Open andrewshawcare opened 10 years ago
I think you want: https://www.npmjs.org/package/load-grunt-tasks https://www.npmjs.org/package/load-grunt-config
Article explaining both: http://www.html5rocks.com/en/tutorials/tooling/supercharging-your-gruntfile/
Or task-master
I was working with my
Gruntfile
and realized that thegrunt.initConfig
andgrunt.loadNpmTasks
are decoupled which creates issues:Gruntfile
.config
object andloadNpmTasks
that would be better served if called out explicitly.I've added a sample
Gruntfile
where I've created aloadNpmTasks
to specifically couple the notion of adding a task with id, name, and configuration. If this seems a reasonable approach to the community, I'd suggest adopting a similar method in thegrunt
API to allow for cohesive task management.