Improved build banners, including making them visible in minified version

This commit is contained in:
Ian Gilman 2013-03-11 11:52:30 -07:00
parent f28fea8f74
commit b4ddb5a953
2 changed files with 9 additions and 1 deletions

View File

@ -60,7 +60,10 @@ module.exports = function(grunt) {
},
concat: {
options: {
banner: "/**\n * @version <%= pkg.name %> <%= pkg.version %>\n */\n\n"
banner: "//! <%= pkg.name %> <%= pkg.version %>\n"
+ "//! Built on <%= grunt.template.today('yyyy-mm-dd') %>\n"
+ "//! http://openseadragon.github.com\n\n",
process: true
},
dist: {
src: [ "<banner>" ].concat(sources),
@ -68,6 +71,9 @@ module.exports = function(grunt) {
}
},
uglify: {
options: {
preserveComments: "some"
},
openseadragon: {
src: [ distribution ],
dest: minified

View File

@ -1,4 +1,6 @@
/**
* @version <%= pkg.name %> <%= pkg.version %>
*
* @fileOverview
* <h2>
* <strong>