Closed tigerclaw-az closed 10 years ago
All examples are in section Grunt tasks files
aliases.(js|json|yaml|coffee)
is just another task, although a bit special one.
I think that adding more examples is not necessary. All you need is already here.
My proposition is: No plan to fix
I'm inclined to agree with @ejwaibel. It's really not clear how to add in alias files in any language other than yaml.
You say they're the same as tasks, but a bit special; what makes them special? Is it a case of writing the following, or is it something else entirely?
default:
module.exports = {
'default' : [
'jshint',
'mocha',
'notify'
]
};
:+1: For not really clear how that looks.
I hope #89 pull request solves the problem
That's a lot clearer, thanks @tawez.
A word of comment:
What makes aliases a bit special is described in README.md:
load-grunt-config will use that to define your tasks aliases (like grunt.registerTask('default', ['jshint']);)
It means, that for each entry in aliasses file load-grunt-config will invoke grunt.registerTask()
.
General rules:
default
even if you don't need it. If it is your case, define default
as empty array.
Currently the README only shows an example of how to create an alias file for yaml, but I'd like to see an example of one using JavaScript.