diff options
author | kpdecker <kpdecker@gmail.com> | 2013-10-14 11:15:27 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-10-14 11:15:27 -0500 |
commit | 84c837869ef3b4067acc0ac638099de6833e6ba5 (patch) | |
tree | ea2fc2105f84833b65bb1a70e44c792ad300d7dc /Gruntfile.js | |
parent | dd777c9872f0ef87053f2f475a2db1e7f9f63ea0 (diff) | |
download | handlebars.js-84c837869ef3b4067acc0ac638099de6833e6ba5.zip handlebars.js-84c837869ef3b4067acc0ac638099de6833e6ba5.tar.gz handlebars.js-84c837869ef3b4067acc0ac638099de6833e6ba5.tar.bz2 |
Create release grunt task
Allows for tests to be run slightly faster when developing locally.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index c83e883..c1fb65c 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']); }; |