-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 886 Bytes
/
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
.PHONY: dev prd min show-figwheel-config foreign-dev foreign-prd clean clobber
dev: foreign-dev
clojure -A:figwheel
prd: foreign-prd
clojure --main "figwheel.main" --build-once "config/prd"
cp target/public/cljs-out/prd-main.js dist/app.js
cp -r resources/public/css dist
min: foreign-prd
clojure --main "figwheel.main" --build-once "config/min"
cp target/public/cljs-out/min-main.js dist/app.js
cp -r resources/public/css dist
show-figwheel-config:
clojure -m figwheel.main -pc -b dev -r
foreign-dev: node_modules src/js/**
yarn webpack --config config/webpack-dev.config.js
foreign-prd: node_modules src/js/**
yarn webpack --config config/webpack-prd.config.js
node_modules: package.json
yarn install
touch node_modules
clean:
rm -rf target out nashorn_code_cache .cljs_nashorn_repl
rm -rf dist/*.js dist/*.map dist/css
clobber: clean
rm -rf tmp node_modules