From b4ddb5a953e23d194fa4682f686a62db4e30dd4d Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Mon, 11 Mar 2013 11:52:30 -0700 Subject: [PATCH] Improved build banners, including making them visible in minified version --- Gruntfile.js | 8 +++++++- src/openseadragon.js | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index c3006fbd..c762b250 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: [ "" ].concat(sources), @@ -68,6 +71,9 @@ module.exports = function(grunt) { } }, uglify: { + options: { + preserveComments: "some" + }, openseadragon: { src: [ distribution ], dest: minified diff --git a/src/openseadragon.js b/src/openseadragon.js index 0335e593..b9c0b6dc 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1,4 +1,6 @@ /** + * @version <%= pkg.name %> <%= pkg.version %> + * * @fileOverview *

*