Create release grunt task

Allows for tests to be run slightly faster when developing locally.
This commit is contained in:
kpdecker
2013-10-14 11:15:27 -05:00
parent dd777c9872
commit 84c837869e
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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
+6 -3
View File
@@ -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']);
};