Grunt - Test with jshint before uglify files, closes #4680

This commit is contained in:
Claudio Sanches 2015-07-10 02:16:04 -03:00
parent 62d879e86c
commit ab4bff9f2f
1 changed files with 6 additions and 3 deletions

View File

@ -22,6 +22,8 @@ module.exports = function( grunt ) {
'<%= dirs.js %>/admin/*.js',
'!<%= dirs.js %>/admin/*.min.js',
'!<%= dirs.js %>/admin/jquery.flot*',
'!<%= dirs.js %>/admin/accounting.js',
'!<%= dirs.js %>/admin/round.js',
'<%= dirs.js %>/frontend/*.js',
'!<%= dirs.js %>/frontend/*.min.js',
'includes/gateways/simplify-commerce/assets/js/*.js',
@ -138,7 +140,7 @@ module.exports = function( grunt ) {
'!<%= dirs.js %>/admin/*.min.js',
'!<%= dirs.js %>/frontend/*.min.js'
],
tasks: ['uglify']
tasks: ['jshint', 'uglify']
}
},
@ -250,8 +252,9 @@ module.exports = function( grunt ) {
// Register tasks
grunt.registerTask( 'default', [
'css',
'uglify'
'jshint',
'uglify',
'css'
]);
grunt.registerTask( 'css', [