-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (28 loc) · 927 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
35
36
37
38
.PHONY: all build watch less less-long watch-less
BROWSERIFY=node_modules/.bin/browserify
WATCHIFY=node_modules/.bin/watchify
NODEMON=node_modules/.bin/nodemon
LESSC=node_modules/.bin/lessc
all: js less
clean:
rm -f scripts/bundle.js
rm -f scripts/bundle.css
js:
$(BROWSERIFY) scripts/index.js --transform reactify --transform es6ify --outfile scripts/bundle.js --debug
watch-js:
$(WATCHIFY) scripts/index.js --transform reactify --transform es6ify --outfile scripts/bundle.js --debug -v
less:
$(LESSC) styles/index.less styles/bundle.css
# this target exists because nodeomon can't handle short-running tasks.
less-long: less
sleep 999999999
watch-less:
$(NODEMON) --watch styles/ --ext less --exec "make less-long"
watch:
./together "make watch-js" "make watch-less"
watch-serve:
./together "make watch-js" "make watch-less" "http-server"
deploy-here:
git fetch
git checkout -f origin/master
make all