mardi 24 février 2015

defining grunt aliases with option values defined

Does Grunt allow to define custom aliases just like npm or bash does? In grunt docs it says, that one can define a sequence on tasks (which might be just a single item). So in my opinion it should be called chaining rather than aliasing. What I'm looking for is providing a grunt alias that would just define value for a parameter.


Using npm, I can make npm test-e2e run grunt test --type=e2e. In package.json I've got:



"scripts": {
"test-e2e": "node_modules/.bin/grunt test --type=e2e",
"test-unit": "node_modules/.bin/grunt test --type=unit"
}


Can I make grunt test-e2e (notice grunt instead of npm as above) be an alias of grunt test --type=e2e?


Aucun commentaire:

Enregistrer un commentaire