-
Notifications
You must be signed in to change notification settings - Fork 1
/
dip.yml
49 lines (43 loc) · 1.16 KB
/
dip.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
version: '4.1'
interaction:
bash:
description: Oopen a Bash shell
service: app
command: bash
yarn:
description: Run Yarn commands
service: app
command: yarn
subcommands:
dev:
description: Run Node server in development mode
command: yarn dev
compose:
run_options: [service-ports, use-aliases]
debug:
description: Run Node server in development mode with an opened debug port
command: yarn debug
compose:
run_options: [service-ports, use-aliases]
lint:
description: Run Standard linter
service: app
command: yarn eslint .
compose:
run_options: [no-deps]
mocha:
description: Run Mocha tests
service: app
command: yarn test
psql:
description: Open a Postgres psql console
service: postgres
default_args: twinkle_development
command: psql -h postgres -U postgres
provision:
- dip yarn install
- dip yarn sequelize-cli db:create
- dip yarn sequelize-cli db:migrate
- dip yarn sequelize-cli db:seed:all
- env NODE_ENV=test dip yarn sequelize-cli db:create
- env NODE_ENV=test dip yarn sequelize-cli db:migrate