forked from faloker/purify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
74 lines (63 loc) · 1.24 KB
/
Taskfile.yml
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
version: '2'
output: prefixed
tasks:
web:
dir: web
deps: [install-web-deps]
cmds:
- npm run serve
silent: true
install-web-deps:
dir: web
cmds:
- npm i
status:
- test -d node_modules
prefix: "Installing web dependencies"
silent: true
api:
dir: api
deps: [mongo, install-api-deps]
cmds:
- npm run start
silent: true
install-api-deps:
dir: api
cmds:
- npm i
status:
- test -d node_modules
prefix: "Installing api dependencies"
silent: true
mongo:
cmds:
- docker run -p 27017:27017 -d --name dev_mongo mongo
status:
- docker ps | grep dev_mongo
silent: true
start:
cmds:
- docker-compose up -d --build
silent: true
status:
- docker ps | grep purify_app_1
start-dev:
cmds:
- docker-compose -f docker-compose.dev.yml up -d --build
silent: true
status:
- docker ps | grep purify_app_1
stop:
cmds:
- docker-compose stop
- docker-compose rm -f
silent: true
local:
cmds:
- docker-compose -f docker-compose.local.yml up -d --build
silent: true
reset:
cmds:
- task: stop
- task: start-dev
silent: true