-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (40 loc) · 832 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Binaries.
#
duo = ./node_modules/.bin/duo --development --copy
nodemon = ./node_modules/.bin/nodemon --harmony --quiet
#
# Default.
#
default: run
#
# Tasks.
#
# Remove non-checked-in dependencies.
clean:
@rm -rf node_modules components
# Run the server in debug mode.
debug: node_modules
@node --debug-brk --harmony bin/server --development
# Run the server with node inspector for Chrome debugger
browser:
node-inspector
# Run the server.
run: node_modules
@node --harmony bin/server
# Run the server with nodemon for development.
server: node_modules
@$(nodemon) --watch bin --watch server bin/server --development
#
# Targets.
#
node_modules: package.json
@npm install
@touch node_modules # make sure node_modules is last modified
#
# Phonies.
#
.PHONY: clean
.PHONY: debug
.PHONY: run
.PHONY: server