]> source.dussan.org Git - jquery.git/commitdiff
Build: Add lint task
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 18 Feb 2014 16:34:49 +0000 (20:34 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 15 Apr 2014 13:45:59 +0000 (17:45 +0400)
Gruntfile.js

index 001a407d0ef49340c72cdb84208a82547ce7efa1..54d3194bc5d3a9560c3ec091ba14639ffa6bc567 100644 (file)
@@ -145,11 +145,11 @@ module.exports = function( grunt ) {
        // Integrate jQuery specific tasks
        grunt.loadTasks( "build/tasks" );
 
-       // Alias bower to bowercopy
        grunt.registerTask( "bower", "bowercopy" );
+       grunt.registerTask( "lint", [ "jshint", "jscs" ] );
 
        // Short list as a high frequency watch task
-       grunt.registerTask( "dev", [ "build:*:*", "jshint", "jscs" ] );
+       grunt.registerTask( "dev", [ "build:*:*", "lint" ] );
 
        // Default grunt
        grunt.registerTask( "default", [ "jsonlint", "dev", "uglify", "dist:*", "compare_size" ] );