-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 1.02 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
ENV = development
BUNDLE = bundle
NANOC = $(BUNDLE) exec nanoc --env=$(ENV)
PORT = 4000
NODE = node
NODE_OPTS =
TEST =
TEST_OPTS =
export ENV
love:
@$(NANOC) compile
compile: love
autocompile: export NANOC_ENV = $(ENV)
autocompile:
@$(BUNDLE) exec guard start
server:
@$(NANOC) view --port $(PORT) --live-reload
autoserver:
@$(NANOC) live --port $(PORT) --live-reload
test:
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)
spec:
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)
autotest:
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)
autospec:
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)
deploy: ENV = production
deploy: compile
@$(NANOC) deploy -t default
shrinkwrap:
npm shrinkwrap --dev
content/initiatives.json: scripts/get-initiatives
scripts/get-initiatives > "$@"
.PHONY: love
.PHONY: compile autocompile
.PHONY: server autoserver
.PHONY: test spec autotest autospec
.PHONY: shrinkwrap
.PHONY: deploy