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