X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Gruntfile.js;h=72473b21c5d0aced6976698d2641674c381e19e2;hb=e9490a344376036978956aedeb213066fdbf49e4;hp=72a407f921c9346421a98a219bcce8285103a4c3;hpb=7005b425e0b554f26a97863ae7784a4c5c52645a;p=github%2Fwallabag%2Fwallabag.git 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) { }, stylelint: { target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css'] + }, + watch: { + files: ['<%= appDir %>/**/*.css', '<%= appDir %>/**/*.js'], + tasks: ['css', 'js'] } - }); grunt.registerTask( @@ -221,5 +224,7 @@ module.exports = function (grunt) { 'tests', 'Test css and js style conformity', ['eslint', 'stylelint', 'default'] - ) + ), + + grunt.loadNpmTasks('grunt-contrib-watch'); };