From e9490a344376036978956aedeb213066fdbf49e4 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 8 Nov 2016 22:16:01 +0100 Subject: Add `grunt watch` task --- Gruntfile.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Gruntfile.js') 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'); }; -- cgit v1.2.3