Prepend license to dygraph.min.js module
authorDan Vanderkam <danvdk@gmail.com>
Sun, 25 Oct 2015 02:38:39 +0000 (22:38 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Sun, 25 Oct 2015 02:44:38 +0000 (22:44 -0400)
.gitignore
scripts/build.sh

index b904bed..121cd66 100644 (file)
@@ -4,3 +4,4 @@ node_modules
 env
 dist
 coverage
+*.log
index d9ea2e2..9374a9c 100755 (executable)
@@ -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 \