aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gruntfile.js
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 /Gruntfile.js
parent7005b425e0b554f26a97863ae7784a4c5c52645a (diff)
downloadwallabag-e9490a344376036978956aedeb213066fdbf49e4.tar.gz
wallabag-e9490a344376036978956aedeb213066fdbf49e4.tar.zst
wallabag-e9490a344376036978956aedeb213066fdbf49e4.zip
Add `grunt watch` task
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js9
1 files changed, 7 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};