aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-11-08 22:16:01 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-08 22:16:01 +0100
commite9490a344376036978956aedeb213066fdbf49e4 (patch)
tree94ada1ef1b3bdf0cf63a4de6bd0b3faed1672008
parent7005b425e0b554f26a97863ae7784a4c5c52645a (diff)
downloadwallabag-e9490a344376036978956aedeb213066fdbf49e4.tar.gz
wallabag-e9490a344376036978956aedeb213066fdbf49e4.tar.zst
wallabag-e9490a344376036978956aedeb213066fdbf49e4.zip
Add `grunt watch` task
-rw-r--r--Gruntfile.js9
-rw-r--r--package.json1
2 files changed, 8 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 72a407f9..72473b21 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -189,8 +189,11 @@ module.exports = function (grunt) {
189 }, 189 },
190 stylelint: { 190 stylelint: {
191 target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css'] 191 target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css']
192 },
193 watch: {
194 files: ['<%= appDir %>/**/*.css', '<%= appDir %>/**/*.js'],
195 tasks: ['css', 'js']
192 } 196 }
193
194 }); 197 });
195 198
196 grunt.registerTask( 199 grunt.registerTask(
@@ -221,5 +224,7 @@ module.exports = function (grunt) {
221 'tests', 224 'tests',
222 'Test css and js style conformity', 225 'Test css and js style conformity',
223 ['eslint', 'stylelint', 'default'] 226 ['eslint', 'stylelint', 'default']
224 ) 227 ),
228
229 grunt.loadNpmTasks('grunt-contrib-watch');
225}; 230};
diff --git a/package.json b/package.json
index 20afb425..ace74c7f 100644
--- a/package.json
+++ b/package.json
@@ -77,6 +77,7 @@
77 "grunt-contrib-copy": "^1.0.0", 77 "grunt-contrib-copy": "^1.0.0",
78 "grunt-contrib-symlink": "^1.0.0", 78 "grunt-contrib-symlink": "^1.0.0",
79 "grunt-contrib-uglify": "^1.0.0", 79 "grunt-contrib-uglify": "^1.0.0",
80 "grunt-contrib-watch": "^1.0.0",
80 "grunt-eslint": "^19.0.0", 81 "grunt-eslint": "^19.0.0",
81 "grunt-postcss": "^0.8.0", 82 "grunt-postcss": "^0.8.0",
82 "grunt-stylelint": "^0.6.0", 83 "grunt-stylelint": "^0.6.0",