},
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');
};
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-symlink": "^1.0.0",
"grunt-contrib-uglify": "^1.0.0",
+ "grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "^19.0.0",
"grunt-postcss": "^0.8.0",
"grunt-stylelint": "^0.6.0",