]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - Gruntfile.js
Add `grunt watch` task
[github/wallabag/wallabag.git] / Gruntfile.js
index 72a407f921c9346421a98a219bcce8285103a4c3..72473b21c5d0aced6976698d2641674c381e19e2 100644 (file)
@@ -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');
 };