From ca8c85838e6a98c17d7f62bb4e3f43e9244b1385 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 24 Oct 2015 22:38:39 -0400 Subject: [PATCH] Prepend license to dygraph.min.js --- .gitignore | 1 + scripts/build.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index b904bed..121cd66 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules env dist coverage +*.log diff --git a/scripts/build.sh b/scripts/build.sh index d9ea2e2..9374a9c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -34,8 +34,11 @@ browserify \ # Create dist/dygraph.tmp.js.map cat dist/dygraph.tmp.js | exorcist --base . dist/dygraph.tmp.js.map > /dev/null +header='/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */' + # Create dist/dygraph.js.min{,.map} uglifyjs --compress --mangle \ + --preamble "$header" \ --in-source-map dist/dygraph.tmp.js.map \ --source-map-include-sources \ --source-map dist/dygraph.min.js.map \ -- 2.7.4