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 # Create dist/dygraph.js.min{,.map}
38 uglifyjs
--compress --mangle \
39 --in-source-map dist
/dygraph.tmp.js.map \
40 --source-map-include-sources \
41 --source-map dist
/dygraph.min.js.map \
42 -o dist
/dygraph.min.js \
45 # Copy to the old location
46 cp dist
/dygraph.min.js dist
/dygraph-combined.js
49 jar
-cf dist
/dygraph-gwt.jar
-C gwt org
52 rm dist
/dygraph.tmp.js
53 rm dist
/dygraph.tmp.js.map