projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepend license to dygraph.min.js
[dygraphs.git]
/
scripts
/
build.sh
diff --git
a/scripts/build.sh
b/scripts/build.sh
index
d9ea2e2
..
9374a9c
100755
(executable)
--- 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
# 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 \
# 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 \
--in-source-map dist/dygraph.tmp.js.map \
--source-map-include-sources \
--source-map dist/dygraph.min.js.map \