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 to add git revision to version number betwe…
Browse files Browse the repository at this point in the history
…en releases

Add version number to builds
  • Loading branch information
dfreedm committed Dec 18, 2013
1 parent 542ea8d commit 9edd9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = function(grunt) {
sourceMap: 'build/platform.js.map',
sourceMapIn: 'build/platform.concat.js.map',
sourceMappingURL: "platform.js.map",
banner: grunt.file.read('LICENSE')
banner: grunt.file.read('LICENSE') + '// @version: <%= buildversion %>'
},
files: {
'build/platform.js': 'build/platform.concat.js'
Expand Down Expand Up @@ -119,7 +119,7 @@ module.exports = function(grunt) {

grunt.registerTask('test-build', ['default', 'stash', 'test', 'restore']);

grunt.registerTask('minify', ['concat_sourcemap', 'uglify', 'sourcemap_copy:build/platform.concat.js.map:build/platform.js.map']);
grunt.registerTask('minify', ['concat_sourcemap', 'version', 'uglify', 'sourcemap_copy:build/platform.concat.js.map:build/platform.js.map']);
grunt.registerTask('default', ['minify', 'audit']);
grunt.registerTask('docs', ['yuidoc']);
grunt.registerTask('test', ['override-chrome-launcher', 'karma:platform']);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Platform",
"version": "0.0.1",
"version": "0.1.1",
"devDependencies": {
"mocha": "~1.14.0",
"chai": "~1.8.1",
Expand Down

0 comments on commit 9edd9e2

Please sign in to comment.