-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
87 lines (59 loc) · 2.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
MODE = production
all: build-pages
build-npm: node_modules
mkdir -p dist
(cd material-components-web && make)
cp material-components-web/build/material-components-web-elm.css dist/
cp material-components-web/build/material-components-web-elm.css.map dist/
cp material-components-web/build/material-components-web-elm.js dist/
cp material-components-web/build/material-components-web-elm.js.map dist/
cp material-components-web/build/material-components-web-elm.min.css dist/
cp material-components-web/build/material-components-web-elm.min.css.map dist/
cp material-components-web/build/material-components-web-elm.min.js dist/
build-pages: build-npm build-demo
mkdir -p public
rsync --delete -r demo/images public
cp demo/page.html public/index.html
cp demo/demo.js public
cp dist/material-components-web-elm.js public
cp dist/material-components-web-elm.js.map public
cp dist/material-components-web-elm.min.js public
cp dist/material-components-web-elm.css public
cp dist/material-components-web-elm.css.map public
cp dist/material-components-web-elm.min.css public
cp dist/material-components-web-elm.min.css.map public
build-demo:
(cd demo && make)
build-examples:
(cd examples/simple-counter && make)
build-docs: src/**/*.elm
elm make --docs=docs.json
do-review: node_modules
elm-review
(cd demo && ../node_modules/.bin/elm-review)
do-checks: node_modules
bash bin/check-links.sh
bash bin/test-docs.sh
commit-pages: build-pages
(cd public && git add . && git commit -m 'Update' && git push)
docs: node_modules
elm-doc-preview --port 8001
release: distclean build-pages build-examples build-docs do-review do-checks
node_modules:
npm install
clean:
find src -name "*.d.ts" | xargs rm -f
find src -name "component.js" | xargs rm -f
find src -name "*.js.map" | xargs rm -f
find src -name "*.patch" | xargs rm -f
find src -name "*.ts.orig" | xargs rm -f
rm -rf dist public
rm -f docs.json
(cd demo && make clean)
(cd examples/simple-counter && make clean)
(cd material-components-web && make clean)
distclean: clean
rm -rf elm-stuff node_modules
(cd demo && make distclean)
(cd examples/simple-counter && make distclean)
(cd material-components-web && make distclean)