Run tests on Travis-CI.
[dygraphs.git] / make-prod-combined.sh
CommitLineData
7fea22be 1#!/bin/bash
2a1f00d8
DV
2mkdir -p dist
3
7fea22be
DV
4browserify \
5 -v \
6 -t babelify \
7 -t [ envify --NODE_ENV production ] \
8 --debug \
9 --standalone Dygraph \
10 src/dygraph.js \
7fea22be 11 > dist/dygraph.js
2a1f00d8
DV
12
13# Create dist/dygraph.js.map
14cat dist/dygraph.js | exorcist --base . dist/dygraph.js.map > /dev/null
15
16# Create dist/dygraph.js.min{,.map}
17uglifyjs --compress --mangle \
18 --in-source-map dist/dygraph.js.map \
19 --source-map-include-sources \
20 --source-map dist/dygraph.min.js.map \
21 -o dist/dygraph.min.js \
22 dist/dygraph.js
23
24# Copy to the old location
25cp dist/dygraph.min.js dist/dygraph-combined.js