From 47e26799f00c5c4d3daf546d94d789904c577069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Wed, 27 May 2015 15:50:14 +0100 Subject: [PATCH] chore(Gruntfile.js): change and organize grunt tasks - build task now tests before building - removed build with closure task - test now runs lint before testing - Default grunt task is now build. --- Gruntfile.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 47d9262..4557a6c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -86,15 +86,12 @@ module.exports = function (grunt) { // test grunt.registerTask('lint', ['jshint']); - grunt.registerTask('test', ['simplemocha']); + grunt.registerTask('test', ['concat', 'lint', 'simplemocha']); // build with uglify - grunt.registerTask('build', ['concat', 'uglify']); - - // Build with closure compiler - grunt.registerTask('build-with-closure', ['test', 'concat', 'closure-compiler']); + grunt.registerTask('build', ['test', 'concat', 'uglify']); // Default task(s). - grunt.registerTask('default', []); + grunt.registerTask('default', ['build']); };