4 # - dist/dygraph.js.map
5 # - dist/dygraph.min.js
6 # - dist/dygraph.min.js.map
11 # Create dist/dygraph.js
15 -t
[ envify
--NODE_ENV development
] \
17 --standalone Dygraph \
21 # Create dist/dygraph.js.map
22 cat dist
/dygraph.tmp.js | exorcist
--base . dist
/dygraph.js.map
> dist
/dygraph.js
24 # Create "production" bundle for minification
28 -t
[ envify
--NODE_ENV production
] \
30 --standalone Dygraph \
34 # Create dist/dygraph.tmp.js.map
35 cat dist
/dygraph.tmp.js | exorcist
--base . dist
/dygraph.tmp.js.map
> /dev
/null
37 header
='/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
39 # Create dist/dygraph.js.min{,.map}
40 uglifyjs
--compress --mangle \
41 --preamble
"$header" \
42 --in-source-map dist
/dygraph.tmp.js.map \
43 --source-map-include-sources \
44 --source-map dist
/dygraph.min.js.map \
45 -o dist
/dygraph.min.js \
48 # Copy to the old location
49 cp dist
/dygraph.min.js dist
/dygraph-combined.js
52 jar
-cf dist
/dygraph-gwt.jar
-C gwt org
55 rm dist
/dygraph.tmp.js
56 rm dist
/dygraph.tmp.js.map