Closed IAmAnubhavSaini closed 9 years ago
Well, I thought I would look into how jQuery does it, so here's how they do it.
grunt.registerTask( "lint", [ "jsonlint", "jshint", "jscs" ] );
grunt.registerTask( "test_fast", [ "node_smoke_tests" ] );
grunt.registerTask( "test", [ "test_fast", "promises_aplus_tests" ] );
// Short list as a high frequency watch task
grunt.registerTask( "dev", [ "build:*:*", "lint", "uglify", "remove_map_comment", "dist:*" ] );
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
i.e. multiple registerTask calls.
We need these.
There are a few categories of tasks.
So, what's the theory on configs.