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

Add option to specify 'aliases' file location #109

Closed rfgamaral closed 7 years ago

rfgamaral commented 9 years ago

I really like the flexibility of this library allowing me to break up my Gruntfile into multiple and more maintainable files. For me, there's only one thing missing and that's the option to specify the aliases file location.

Why would I want this? Well... I like to separate my custom tasks implementation from my tasks configurations and for that I use load-grunt-config like this:

require('load-grunt-config')(grunt, {
    jitGrunt: {
        customTasksDir: path.join(process.cwd(), 'grunt/tasks')
    },
    configPath: path.join(process.cwd(), 'grunt/options')
});

With this configuration, I'm forced to have the aliases file inside the grunt/options folder, which doesn't make much sense to me. It would make more sense to have it in the grunt/tasks folder instead. Or, my preferred option, the root grunt folder as to not mix up with custom tasks and tasks configuration.

rarila commented 9 years ago

:+1:

AleksueiR commented 9 years ago

:+1:

GwendolenLynch commented 9 years ago

:+1:

jgallen23 commented 9 years ago

good idea. I'll accept a PR if anybody wants to tackle it