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

aliases.js example #37

Closed peter-mouland closed 10 years ago

peter-mouland commented 10 years ago

Have you an example aliases.js file?

peter-mouland commented 10 years ago

ignore me - my alias wasnt working for an unrelated reason. for anyone else, here is an example:

module.exports = { "dev-build": ['clean:toolkit', 'compass:toolkit', 'requirejs:toolkit', 'jekyll:build'], "dev-spy": ['dev-build', 'watch'],

    //  standard build tasks that lints your JS
    "build": ['jshint', 'dev-build'],
    "spy": ['jshint', 'dev-spy'],

    //  misc tasks
    "fonts": [ 'clean:fonts', 'svgmin:fonts', 'webfont', 'compass:fonts'],

    //  testing tasks
    "test-with-coverage": ['requirejs:beautify','jekyll:build', 'blanket_mocha'],
    "test-cross-browser": ['jekyll:build','connect', 'exec:browserstack'],

    //  alias
    "test": ['test-with-coverage'],
    "default": ['build']

};