Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
use shared "version" task for adding git revision to builds between r…
Browse files Browse the repository at this point in the history
…eleases
  • Loading branch information
dfreedm committed Dec 18, 2013
1 parent 702f49d commit cb58f30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function(grunt) {
sourceMap: 'build/polymer.js.map',
sourceMapIn: 'build/polymer.concat.js.map',
sourceMappingURL: 'polymer.js.map',
banner: grunt.file.read('LICENSE') + '// @version: <%= pkg.version %>'
banner: grunt.file.read('LICENSE') + '// @version: <%= buildversion %>'
//mangle: false, beautify: true, compress: false
},
files: {
Expand Down Expand Up @@ -102,7 +102,7 @@ module.exports = function(grunt) {
grunt.registerTask('test-build', ['minify', 'stash', 'test', 'restore']);

grunt.registerTask('default', ['minify', 'audit']);
grunt.registerTask('minify', ['concat_sourcemap', 'uglify', 'sourcemap_copy:build/polymer.concat.js.map:build/polymer.js.map']);
grunt.registerTask('minify', ['concat_sourcemap', 'version', 'uglify', 'sourcemap_copy:build/polymer.concat.js.map:build/polymer.js.map']);
grunt.registerTask('docs', ['yuidoc']);
grunt.registerTask('test', ['override-chrome-launcher', 'karma:polymer']);
grunt.registerTask('test-buildbot', ['override-chrome-launcher', 'karma:buildbot', 'minify', 'stash', 'karma:buildbot', 'restore']);
Expand Down

0 comments on commit cb58f30

Please sign in to comment.