diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2014-12-29 21:07:03 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2015-01-11 10:28:18 -0500 |
commit | bb928bde7e7b85357fef3fedd450b04c03e965d7 (patch) | |
tree | c5f4774e6bbc3547968aaef0044edcec97fcd4d1 /Gruntfile.js | |
parent | 53aa87f3bf4284763405f3eb8affff296e55ba4f (diff) | |
download | jquery-bb928bde7e7b85357fef3fedd450b04c03e965d7.tar.gz jquery-bb928bde7e7b85357fef3fedd450b04c03e965d7.zip |
Build: Rearrange grunt/npm tasks into a build/dist/test pattern
Ref 76df9e4e389d80bff410a9e5f08b848de1d21a2f
Closes gh-1980
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 705e093d8..38e5d4661 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -121,7 +121,7 @@ module.exports = function( grunt ) { }, watch: { files: [ "<%= jshint.all.src %>" ], - tasks: "dev" + tasks: [ "dev" ] }, uglify: { all: { @@ -154,26 +154,14 @@ module.exports = function( grunt ) { // Integrate jQuery specific tasks grunt.loadTasks( "build/tasks" ); - grunt.registerTask( "lint", [ "jshint", "jscs" ] ); - - grunt.registerTask( "node_smoke_test", function() { - var done = this.async(); - require( "jsdom" ).env( "", function( errors, window ) { - if ( errors ) { - console.error( errors ); - done( false ); - } - require( "./" )( window ); - done(); - }); - }); - - // Short list as a high frequency watch task - grunt.registerTask( "dev", [ "build:*:*", "lint" ] ); + grunt.registerTask( "lint", [ "jsonlint", "jshint", "jscs" ] ); grunt.registerTask( "test_fast", [ "node_smoke_test" ] ); - grunt.registerTask( "test", [ "default", "test_fast" ] ); + grunt.registerTask( "test", [ "test_fast" ] ); + + // Short list as a high frequency watch task + grunt.registerTask( "dev", [ "build:*:*", "lint", "uglify", "dist:*" ] ); - grunt.registerTask( "default", [ "jsonlint", "dev", "uglify", "dist:*", "compare_size" ] ); + grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] ); }; |