Permalink
Browse files

Continuously monitor package.json file when the debug task is running.

  • Loading branch information...
1 parent dc00c08 commit def88a47b96851109b015f283cd62c809c0d092f @shaoshing shaoshing committed Feb 1, 2016
Showing with 9 additions and 5 deletions.
  1. +9 −5 Gruntfile.js
View
@@ -184,6 +184,10 @@ module.exports = function (grunt) {
options: {
interval: 500
}
+ },
+ dependencies: {
+ files: ["package.json"],
+ tasks: ["checkDependencies"]
}
},
// Build tasks
@@ -230,9 +234,9 @@ module.exports = function (grunt) {
}
},
concurrent: {
- test: ["checkDependencies", "eslint", "jscs", "jsdoc", "jsonlint", "lintspaces"],
+ test: ["eslint", "jscs", "jsdoc", "jsonlint", "lintspaces"],
build: {
- tasks: ["watch:styles", "watch:dictionaries", "watch:sources", "webpack:watch"],
+ tasks: ["watch:styles", "watch:dictionaries", "watch:sources", "webpack:watch", "watch:dependencies"],
options: {
logConcurrentOutput: true
}
@@ -247,7 +251,7 @@ module.exports = function (grunt) {
}
},
checkDependencies: {
- this: {},
+ this: {}
}
});
@@ -269,13 +273,13 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-concat-json");
grunt.loadNpmTasks("grunt-merge-json");
grunt.loadNpmTasks("grunt-notify");
- grunt.loadNpmTasks('grunt-check-dependencies');
+ grunt.loadNpmTasks("grunt-check-dependencies");
grunt.registerTask("seqtest", "Runs the linter tests sequentially",
["eslint", "jscs", "jsdoc", "jsonlint", "lintspaces"]
);
grunt.registerTask("test", "Runs linter tests",
- ["concurrent:test"]
+ ["checkDependencies", "concurrent:test"]
);
grunt.registerTask("i18n", "Prepares the localization dictionaries",
["clean:i18n", "concat-json", "merge-json"]

0 comments on commit def88a4

Please sign in to comment.