-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
61 lines (45 loc) · 868 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
57
58
59
60
61
.DEFAULT_GOAL := build
.PHONY: build
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash
info:
@echo "Available make commands:"
@echo
@echo " $$ make"
@echo " $$ make dev"
@echo " $$ make watch"
@echo " $$ make start"
@echo
@echo " $$ make todo"
@echo " $$ make depcheck"
@echo " $$ make info"
@echo
build:
webpack --config webpack.config.js
watch:
webpack --watch --config webpack.config.js
run: build
node server.js
dev:
make watch &
nodemon --watch api --watch lib --watch models server.js
todo:
notes api/ lib/ models/ src/ || echo 'Install notes with npm install -g'
depcheck:
depcheck
security:
snyk wizard
security-test:
snyk test
snyk-protect:
snyk protect
####################################
## SERVER TARGETS
start:
pm2 start process.yml
pm2 dump
stop:
pm2 stop process.yml
restart:
@make stop
@make start