Document the value of `this`.
[dygraphs.git] / Makefile
... / ...
CommitLineData
1# You should run "npm install" before running any commands in this Makefile.
2
3all: test generate-combined generate-documentation
4
5clean:
6 @echo cleaning...
7 @cp .dygraph-combined-clean.js dygraph-combined.js
8 rm -f docs/options.html
9
10generate-combined:
11 @echo Generating dygraph-combined.js
12 @./generate-combined.sh
13
14generate-documentation:
15 @echo Generating docs/options.html
16 @./generate-documentation.py > docs/options.html
17 @chmod a+r docs/options.html
18
19gwt: generate-gwt
20
21generate-gwt:
22 @echo Generating GWT JAR file
23 @./generate-jar.sh
24
25test:
26 @./test.sh
27 @./check-combined-unaffected.sh
28
29test-combined: move-combined test clean-combined-test
30
31move-combined: generate-combined
32 mv dygraph-combined.js dygraph-dev.js
33
34clean-combined-test: clean
35 @echo restoring combined
36 git checkout dygraph-dev.js
37 rm dygraph-combined.js.map
38
39lint:
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
45travis: test test-combined lint
46
47publish:
48 ./generate-combined.sh
49 npm publish
50 git checkout dygraph-combined.js