From f9608f1f0c3150aa2aa60262a153fcc7edf2d1b3 Mon Sep 17 00:00:00 2001 From: John-Philip Johansson Date: Sun, 19 Oct 2014 13:10:53 +0200 Subject: [PATCH] refactor(grunt): add build task and use in default --- Gruntfile.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ba899f5..cbdbf19 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -214,11 +214,15 @@ module.exports = function (grunt) { 'karma' ]); - grunt.registerTask('_publish', [ + grunt.registerTask('build', [ 'clean', - 'concat', - 'uglify', + 'concat', 'ngAnnotate', + 'uglify' + ]); + + grunt.registerTask('_publish', [ + 'build', 'changelog', 'nugetpack', 'bump-commit', @@ -232,7 +236,6 @@ module.exports = function (grunt) { grunt.registerTask('default', [ 'newer:jshint', - 'test', - 'build' + 'test' ]); };