Remove old-style series specifications.
[dygraphs.git] / Makefile
1 # You should run "npm install" before running any commands in this Makefile.
2
3 all: test generate-combined generate-documentation
4
5 clean:
6 @echo cleaning...
7 @cp .dygraph-combined-clean.js dygraph-combined.js
8 rm -f docs/options.html
9
10 generate-combined:
11 @echo Generating dygraph-combined.js
12 @./generate-combined.sh
13
14 generate-documentation:
15 @echo Generating docs/options.html
16 @./generate-documentation.py > docs/options.html
17 @chmod a+r docs/options.html
18
19 gwt: generate-gwt
20
21 generate-gwt:
22 @echo Generating GWT JAR file
23 @./generate-jar.sh
24
25 test:
26 @./test.sh
27 @./check-combined-unaffected.sh
28
29 test-combined: move-combined test clean-combined-test
30
31 move-combined: generate-combined
32 mv dygraph-combined.js dygraph-dev.js
33
34 clean-combined-test: clean
35 @echo restoring combined
36 git checkout dygraph-dev.js
37 rm dygraph-combined.js.map
38
39 lint:
40 @./generate-combined.sh ls \
41 | grep -v 'polyfills' \
42 | xargs ./node_modules/.bin/jshint
43
44 # Commands to run for continuous integration on Travis-CI
45 travis: test test-combined lint
46
47 publish:
48 ./generate-combined.sh
49 npm publish
50 git checkout dygraph-combined.js