postcss: {
material: {
options: {
- map: {
- inline: false,
- },
-
processors: [
require('pixrem')(),
require('autoprefixer')({ browsers: 'last 2 versions' }),
},
baggy: {
options: {
- map: {
- inline: false,
- },
-
processors: [
require('pixrem')(),
require('autoprefixer')({ browsers: 'last 2 versions' }),
files: {
'<%= releaseDir %>/themes/material/js/material.min.js':
['<%= buildDir %>/material.browser.js'],
- },
- options: {
- sourceMap: true,
- },
+ }
},
baggy: {
files: {
'<%= releaseDir %>/themes/baggy/js/baggy.min.js':
['<%= buildDir %>/baggy.browser.js'],
- },
- options: {
- sourceMap: true,
- },
+ }
},
},
copy: {
},
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');
};