From cb58f300e1c539425f834bdc510dc4487c7d808c Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Wed, 18 Dec 2013 13:04:02 -0800 Subject: [PATCH] use shared "version" task for adding git revision to builds between releases --- gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index bf571c8..0deeda4 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -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: { @@ -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']);