Added jshint and jscs checks to Grunt tasks.

This commit is contained in:
Alexander Zobnin
2016-09-27 20:19:35 +03:00
parent 07ad717df4
commit e10b831a91
2 changed files with 29 additions and 1 deletions

View File

@@ -68,6 +68,29 @@ module.exports = function(grunt) {
'dist/panel-triggers/css/panel_triggers.css' : 'src/panel-triggers/sass/panel_triggers.scss',
}
}
},
jshint: {
source: {
files: {
src: ['src/**/*.js'],
}
},
options: {
jshintrc: true,
reporter: require('jshint-stylish'),
ignores: [
'node_modules/*',
'dist/*',
]
}
},
jscs: {
src: ['src/**/*.js'],
options: {
config: ".jscs.json",
},
}
});
@@ -76,7 +99,9 @@ module.exports = function(grunt) {
'clean',
'copy:src_to_dist',
'copy:pluginDef',
'sass',
'babel',
'sass'
'jshint',
'jscs'
]);
};