IAmAnubhavSaini / jspaint

Paint application for browser written in JS
https://iamanubhavsaini.github.io/jspaint/index.html
GNU General Public License v3.0
5 stars 1 forks source link

Can we have multiple grunt configs? #5

Closed IAmAnubhavSaini closed 9 years ago

IAmAnubhavSaini commented 9 years ago

There are a few categories of tasks.

  1. Copying from node_packaegs
  2. Replacing text in such copies.
  3. Minifying and replacing text in files while producing build.

So, what's the theory on configs.

IAmAnubhavSaini commented 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.