From 84c837869ef3b4067acc0ac638099de6833e6ba5 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Mon, 14 Oct 2013 11:15:27 -0500 Subject: [PATCH] Create release grunt task Allows for tests to be run slightly faster when developing locally. --- .travis.yml | 2 +- Gruntfile.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a796707c..1e4e9651 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ before_install: - npm install -g grunt-cli script: - - grunt --stack build metrics publish:latest + - grunt --stack default metrics publish:latest email: on_failure: change diff --git a/Gruntfile.js b/Gruntfile.js index c83e8837..c1fb65cf 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -85,9 +85,12 @@ module.exports = function(grunt) { 'parser', 'transpile:amd', 'transpile:cjs', - 'packager-fork', + 'packager-fork']); + + this.registerTask('release', 'Build final packages', [ 'requirejs', - 'uglify']); + 'uglify' + ]); grunt.registerTask('packager-fork', function() { // Allows us to run the packager task out of process to work around the multiple @@ -127,5 +130,5 @@ module.exports = function(grunt) { }); grunt.registerTask('bench', ['metrics']); - grunt.registerTask('default', ['build', 'test']); + grunt.registerTask('default', ['build', 'test', 'release']); };