forked from itk-dev/dpl-fbs-adapter-tool
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Taskfile.yml
36 lines (29 loc) · 1.03 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
version: '3'
dotenv: [".task.env"]
tasks:
dev:install:
summary: Install packages
cmds:
- task dev:node:cli -- yarn install
- task dev:composer:cli -- install
dev:swagger2yaml:
summary: Coveret FSB swagger 1.2 to swagger 2.0
cmds:
- task dev:node:cli -- node_modules/.bin/api-spec-converter --from=swagger_1 --to=swagger_2 --syntax=yaml fbs/service.json > fbs/service.yaml
dev:convert:
summary: Convert FBS swagger to FBS adapter
cmds:
- task dev:swagger2yaml
- task dev:php:cli -- convert.php fbs/service.yaml fbs-adapter.yaml
dev:php:cli:
summary: Performs command inside container. Expects parameter(s).
cmds:
- docker compose run --rm php php {{.CLI_ARGS}}
dev:composer:cli:
summary: Performs command inside container. Expects parameter(s).
cmds:
- docker compose run --rm composer composer {{.CLI_ARGS}}
dev:node:cli:
summary: Performs command inside container. Expects parameter(s).
cmds:
- docker compose run --rm node {{.CLI_ARGS}}