Skip to content

Commit

Permalink
Build: Modified Gruntfile to improve grunt watch
Browse files Browse the repository at this point in the history
  • Loading branch information
rdugue committed Oct 24, 2015
1 parent cf8f682 commit 5d142e8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
27 changes: 22 additions & 5 deletions Gruntfile.js
Expand Up @@ -64,9 +64,9 @@ grunt.initConfig({
options: {
config: ".jscsrc"
},
all: [
"<%= jshint.all %>",
"!test/main/deepEqual.js"
all: [
"<%= jshint.all %>",
"!test/main/deepEqual.js"
]
},
search: {
Expand Down Expand Up @@ -119,9 +119,25 @@ grunt.initConfig({
src: "build/report/lcov/lcov.info"
}
},
concurrent: {
target1: [
"build"
],
target2: [
"newer:jshint:all",
"newer:jscs:all",
"search",
"qunit"
],
target3: [
"test-on-node"
]
},
watch: {
options: {
atBegin: true
atBegin: true,
spawn: false,
interrupt: true
},
files: [
".jshintrc",
Expand Down Expand Up @@ -190,6 +206,7 @@ grunt.registerTask( "test-on-node", function() {
});

grunt.registerTask( "build", [ "concat" ] );
grunt.registerTask( "default", [ "build", "jshint", "jscs", "search", "qunit", "test-on-node" ] );
grunt.registerTask( "default", [ "concurrent:target1", "concurrent:target2", "concurrent:target3" ]
);

};
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -31,12 +31,14 @@
"browserstack-runner": "0.3.7",
"commitplease": "2.0.0",
"grunt": "0.4.2",
"grunt-concurrent": "^2.0.3",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-jshint": "0.11.2",
"grunt-contrib-watch": "0.5.3",
"grunt-coveralls": "0.3.0",
"grunt-git-authors": "3.0.0",
"grunt-jscs": "0.8.1",
"grunt-newer": "1.1.1",
"grunt-qunit-istanbul": "0.5.0",
"grunt-search": "0.1.6",
"load-grunt-tasks": "0.3.0",
Expand Down

0 comments on commit 5d142e8

Please sign in to comment.