-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
88 lines (64 loc) · 1 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#================================
#== DOCKER ENVIRONMENT
#================================
COMPOSE := docker-compose
dcb:
${COMPOSE} build
dcbuf:
ifdef f
${COMPOSE} up -d --build --${f}
endif
dcuf:
ifdef f
${COMPOSE} up -d --${f}
endif
dcu:
${COMPOSE} up -d --build
dcd:
${COMPOSE} down
kdmig:
ifdef type
${COMPOSE} exec app npm run ${type}
endif
kdrun:
${COMPOSE} exec app npm run krun
#############################
# Application Teritory
#############################
NPM := npm
dev:
${NPM} run dev
start:
${NPM} start
startdoc:
${NPM} start
build:
${NPM} run build
test:
${NPM} test
testcov:
${NPM} run test:coverage
install: npm.o build.o
npm.o:
${NPM} ci
build.o:
${NPM} run build
#############################
# Typeorm Database Teritory
#############################
orsrun:
ifdef type
${NPM} run seed:${type}
endif
orscon:
${NPM} run seed:config
ormake:
ifdef name
${NPM} run orm:make ${name}
endif
ormig:
ifdef type
${NPM} run orm:${type}
endif
orlist:
${NPM} run orm:list