-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathMakefile
94 lines (70 loc) · 3.78 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
88
89
90
91
92
93
94
CURL := curl --create-dirs
LINTER := npx eslint
RM := rm -rf
UNZIP := unzip
LANGS := $(wildcard lang/*.json)
VIEWS := $(wildcard views/*.ejs)
all: public/dist/combined.js public/dist/app.js public/dist/combined.css
public/dist/app.js: src/app.js babel.config.json public/verified_tokens.json public/group_icon_repos.json $(LANGS) $(VIEWS)
npx babel $< > $@
public/dist/combined.js: build/unpkg.com/[email protected]/minified.js \
build/unpkg.com/[email protected]/dist/jquery.min.js \
build/unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js \
build/unpkg.com/[email protected]/dist/tippy-bundle.umd.min.js \
build/unpkg.com/[email protected]/ejs.min.js \
build/cdn.plot.ly/plotly-1.2.0.min.js \
build/cdnjs.cloudflare.com/ajax/libs/jquery.devbridge-autocomplete/1.4.9/jquery.autocomplete.min.js \
build/cdn.jsdelivr.net/npm/[email protected] \
build/cdnjs.cloudflare.com/ajax/libs/bignumber.js/9.0.0/bignumber.min.js \
build/cdnjs.cloudflare.com/ajax/libs/js-sha256/0.9.0/sha256.min.js \
build/unpkg.com/[email protected]/dist/bchaddrjs-slp-0.2.8.min.js \
build/unpkg.com/[email protected]/dist/cytoscape.min.js \
build/unpkg.com/[email protected]/klay.js \
build/unpkg.com/[email protected]/dist/clipboard.min.js \
build/unpkg.com/[email protected]/dist/umd/i18next.min.js \
build/unpkg.com/[email protected]/i18nextBrowserLanguageDetector.min.js \
src/lib/cytoscape-klay.js \
src/lib/buffer.min.js \
src/lib/qrcode.min.js \
src/lib/EventSource.js \
src/lib/jquery.nice-select.min.js
cat $^ > $@
build/unpkg.com/[email protected]/minified.js:
$(CURL) https://unpkg.com/[email protected]/minified.js -o $@
build/unpkg.com/[email protected]/dist/jquery.min.js:
$(CURL) https://unpkg.com/[email protected]/dist/jquery.min.js -o $@
build/unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js:
$(CURL) https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js -o $@
build/unpkg.com/[email protected]/dist/tippy-bundle.umd.min.js:
$(CURL) https://unpkg.com/[email protected]/dist/tippy-bundle.umd.min.js -o $@
build/unpkg.com/[email protected]/ejs.min.js:
$(CURL) https://unpkg.com/[email protected]/ejs.min.js -o $@
build/cdn.plot.ly/plotly-1.2.0.min.js:
$(CURL) https://cdn.plot.ly/plotly-1.2.0.min.js -o $@
build/cdnjs.cloudflare.com/ajax/libs/jquery.devbridge-autocomplete/1.4.9/jquery.autocomplete.min.js:
$(CURL) https://cdnjs.cloudflare.com/ajax/libs/jquery.devbridge-autocomplete/1.4.9/jquery.autocomplete.min.js -o $@
build/cdn.jsdelivr.net/npm/[email protected]:
$(CURL) https://cdn.jsdelivr.net/npm/[email protected] -o $@
build/cdnjs.cloudflare.com/ajax/libs/bignumber.js/9.0.0/bignumber.min.js:
$(CURL) https://cdnjs.cloudflare.com/ajax/libs/bignumber.js/9.0.0/bignumber.min.js -o $@
build/cdnjs.cloudflare.com/ajax/libs/js-sha256/0.9.0/sha256.min.js:
$(CURL) https://cdnjs.cloudflare.com/ajax/libs/js-sha256/0.9.0/sha256.min.js -o $@
build/unpkg.com/[email protected]/dist/bchaddrjs-slp-0.2.8.min.js:
$(CURL) https://unpkg.com/[email protected]/dist/bchaddrjs-slp-0.2.8.min.js -o $@
build/unpkg.com/[email protected]/dist/cytoscape.min.js:
$(CURL) https://unpkg.com/[email protected]/dist/cytoscape.min.js -o $@
build/unpkg.com/[email protected]/klay.js:
$(CURL) https://unpkg.com/[email protected]/klay.js -o $@
build/unpkg.com/[email protected]/dist/clipboard.min.js:
$(CURL) https://unpkg.com/[email protected]/dist/clipboard.min.js -o $@
build/unpkg.com/[email protected]/dist/umd/i18next.min.js:
$(CURL) https://unpkg.com/[email protected]/dist/umd/i18next.min.js -o $@
build/unpkg.com/[email protected]/i18nextBrowserLanguageDetector.min.js:
$(CURL) https://unpkg.com/[email protected]/i18nextBrowserLanguageDetector.min.js -o $@
public/dist/combined.css: src/css/nice-select.css src/css/explorer.css
cat $^ > $@
.PHONY: clean lint
clean:
$(RM) build/* public/dist/*
lint:
$(LINTER) src/app.js