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: {
src: ['./<%= releaseDir %>/*'],
}
},
+ eslint: {
+ target: ['<%= appDir %>/themes/material/js/init.js', '<%= appDir %>/themes/baggy/js/init.js']
+ },
+ stylelint: {
+ target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css']
+ }
+
});
grunt.registerTask(
'Compiles the stylesheets.',
['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']
);
+
+ grunt.registerTask(
+ 'tests',
+ 'Test css and js style conformity',
+ ['eslint', 'stylelint', 'default']
+ )
};