Commit 07719736 authored by Richard Gibson's avatar Richard Gibson

Build: Rearrange grunt/npm tasks into a build/dist/test pattern

Ref 76df9e4e389d80bff410a9e5f08b848de1d21a2f
Ref bb928bde7e7b85357fef3fedd450b04c03e965d7

Conflicts:
	Gruntfile.js
	package.json
parent 6ae222a5
...@@ -120,7 +120,7 @@ module.exports = function( grunt ) { ...@@ -120,7 +120,7 @@ module.exports = function( grunt ) {
}, },
watch: { watch: {
files: [ "<%= jshint.all.src %>" ], files: [ "<%= jshint.all.src %>" ],
tasks: "dev" tasks: [ "dev" ]
}, },
uglify: { uglify: {
all: { all: {
...@@ -153,11 +153,15 @@ module.exports = function( grunt ) { ...@@ -153,11 +153,15 @@ module.exports = function( grunt ) {
// Integrate jQuery specific tasks // Integrate jQuery specific tasks
grunt.loadTasks( "build/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 // 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", [ "dev", "test_fast", "compare_size" ] );
grunt.registerTask( "default", [ "jsonlint", "dev", "uglify", "dist:*", "compare_size" ] );
}; };
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
"scripts": { "scripts": {
"build": "npm install && grunt", "build": "npm install && grunt",
"start": "grunt watch", "start": "grunt watch",
"test": "grunt" "test": "grunt && grunt test"
}, },
"commitplease": { "commitplease": {
"components": [ "components": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment