From ab4bff9f2fa7bfe7f5701b76c2ada63d38c64d72 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 10 Jul 2015 02:16:04 -0300 Subject: [PATCH] Grunt - Test with jshint before uglify files, closes #4680 --- Gruntfile.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 54de2acdfb9..894b9e3b1e2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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', [