},
stylelint: {
target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css']
+ },
+ watch: {
+ files: ['<%= appDir %>/**/*.css', '<%= appDir %>/**/*.js'],
+ tasks: ['css', 'js']
}
-
});
grunt.registerTask(
'tests',
'Test css and js style conformity',
['eslint', 'stylelint', 'default']
- )
+ ),
+
+ grunt.loadNpmTasks('grunt-contrib-watch');
};