mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 12:45:04 -05:00
Build: Rearrange grunt/npm tasks into a build/dist/test pattern
Ref76df9e4e38Refbb928bde7eConflicts: Gruntfile.js package.json
This commit is contained in:
14
Gruntfile.js
14
Gruntfile.js
@@ -120,7 +120,7 @@ module.exports = function( grunt ) {
|
||||
},
|
||||
watch: {
|
||||
files: [ "<%= jshint.all.src %>" ],
|
||||
tasks: "dev"
|
||||
tasks: [ "dev" ]
|
||||
},
|
||||
uglify: {
|
||||
all: {
|
||||
@@ -153,11 +153,15 @@ module.exports = function( grunt ) {
|
||||
// Integrate jQuery specific tasks
|
||||
grunt.loadTasks( "build/tasks" );
|
||||
|
||||
grunt.registerTask( "lint", [ "jshint", "jscs" ] );
|
||||
grunt.registerTask( "lint", [ "jsonlint", "jshint", "jscs" ] );
|
||||
|
||||
// Only defined for master at this time, but kept for cross-branch consistency
|
||||
grunt.registerTask( "test_fast", [] );
|
||||
|
||||
grunt.registerTask( "test", [ "test_fast" ] );
|
||||
|
||||
// Short list as a high frequency watch task
|
||||
grunt.registerTask( "dev", [ "build:*:*", "lint" ] );
|
||||
grunt.registerTask( "dev", [ "build:*:*", "lint", "uglify", "dist:*" ] );
|
||||
|
||||
// Default grunt
|
||||
grunt.registerTask( "default", [ "jsonlint", "dev", "uglify", "dist:*", "compare_size" ] );
|
||||
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
|
||||
};
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
"scripts": {
|
||||
"build": "npm install && grunt",
|
||||
"start": "grunt watch",
|
||||
"test": "grunt"
|
||||
"test": "grunt && grunt test"
|
||||
},
|
||||
"commitplease": {
|
||||
"components": [
|
||||
|
||||
Reference in New Issue
Block a user