firstandthird / load-grunt-config

Grunt plugin that lets you break up your Gruntfile config by task
firstandthird.github.io/load-grunt-config/
MIT License
374 stars 64 forks source link

Is it possible to put aliases file the same directory of gruntfile.js? #172

Closed themenow closed 6 years ago

themenow commented 6 years ago

The goal is to have multiple projects share the same "grunt/" folder, and register different task 'build', so:

For project A

build:
  - 'lint'
  - 'mocha'
  - 'notify'

For project B

build:
  - 'lint'
  - 'copy'
  - 'notify'

It's neat if the aliases can be placed in the same folder of gruntfile (the project root), or I don't know if there is a way to pass tasks list like

grunt.registertask('build', tasks_list) // here tasks_list is defined in gruntfile.js

themenow commented 6 years ago

Well, just register task in gruntfile.js will do. Cool new weapon but the old weapon still works, my silly question :)