-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
65 lines (48 loc) · 1.09 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
# .RECIPEPREFIX +=
.DEFAUL_GOAL := info
shadow-cljs = ./node_modules/.bin/shadow-cljs
app = public/app
target = target
all.clean: modules.clean m2.clean app.clean target.clean devcards.clean tests.clean
modules.clean:
@echo "Removing modules and caches"
rm -rf node_modules
rm -rf .shadow-cljs/
rm -rf .cpcache/
target.clean:
rm -rf ${target}
tests.clean:
rm -rf public/tests/*
tests.watch:
${shadow-cljs} -A:dev watch test
m2.clean:
echo "Removing m2 modules"
rm -rf ~/.m2/*
deps: npm.deps
@echo "Installing shadow-cljs deps"
@${shadow-cljs} classpath > /dev/null
npm.deps:
@echo "Installing node deps"
@npm i
info:
${shadow-cljs} info
app.clean:
rm -rf ${app}/js/*
app.target:
cp -r ${app}/* ${target}
app.release: app.target
${shadow-cljs} -A:prod release app
app.watch:
${shadow-cljs} -A:dev watch app
devcards.clean:
rm -rf public/devcards/js/*
devcards.watch:
${shadow-cljs} -A:dev watch devcards
deploy:
@echo "Deploy to git pages:"
@cd ${target}; \
git status; \
git add --all; \
git commit -m "deploy updates"; \
git push origin gh-pages
cd: app.release deploy