Skip to content

Commit

Permalink
add target prod into grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
artch committed Aug 16, 2013
1 parent 9e0bdf1 commit 6b24b49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(grunt) {
concat: {
options: {
separator: ';',
banner: "/**\n * angular-route-segment <%=grunt.config('gitdescribe')[1]%>\n * https://angular-route-segment.com\n * @author Artem Chivchalov\n * @license MIT License http://opensource.org/licenses/MIT\n */\n"
banner: "/**\n * angular-route-segment <%=(grunt.config('gitdescribe') && grunt.config('gitdescribe')[1])%>\n * https://angular-route-segment.com\n * @author Artem Chivchalov\n * @license MIT License http://opensource.org/licenses/MIT\n */\n"
},
prod: {
src: ['src/**/*.js'],
Expand Down Expand Up @@ -60,5 +60,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-git-describe');

grunt.registerTask('default', ['git-describe:run', 'concat:prod', 'uglify']);
grunt.registerTask('default', ['concat:prod']);
grunt.registerTask('prod', ['git-describe:run', 'concat:prod', 'uglify']);
};

0 comments on commit 6b24b49

Please sign in to comment.