This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yaml
122 lines (107 loc) · 2.68 KB
/
Taskfile.yaml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# https://taskfile.dev
version: '3'
tasks:
default:
cmds:
- task: versions
outdated:
cmds:
- cmd: bundle outdated
ignore_error: true
- cmd: pnpm outdated
ignore_error: true
tidy:
cmds:
- cmd: bundle exec rubocop '**/*.rb' --format worst
ignore_error: true
- cmd: bundle exec rubocop '**/*.rb' --format offenses
ignore_error: true
- cmd: npx prettier -c .
ignore_error: true
- cmd: pnpm dedupe --check
# - cmd: bundle exec rubocop '**/*.rb'
# ignore_error: true
tidy-fix:
cmds:
- npx prettier --loglevel warn -w .
- bundle exec rubocop -a '**/*.rb
versions:
silent: true
cmds:
- task --version
- ruby -v
- echo -n 'rubocop '
- bundle exec rubocop --version
- echo -n 'pnpm '
- npx pnpm --version
- echo -n 'prettier '
- npx prettier --version
dev:
dir: test-core-fe
cmds:
- pnpm install
- pnpm dev
test:
cmds:
- task: test-core-jobs
build:
cmds:
- pnpm install
- pnpm --filter core-base-fe build
- pnpm --filter core-jobs-fe build
- pnpm --filter core-comments-fe build
- pnpm --filter core-versions-fe build
- pnpm --filter core-accounting-fe build
- pnpm --filter core-webhooks-fe build
# - task: build-core-base-fe
# - task: build-core-jobs-fe
# - task: build-core-versions-fe
test-core-jobs:
dir: core-jobs
cmds:
- bundle exec rake
build-core-base-fe:
dir: core-base-fe
cmds:
- pnpm install
- npx pnpm build
sources:
- src/**/*.*
- tsconfig.json
- vite.config.js
generates:
- dist/core-base.js
build-core-jobs-fe:
dir: core-jobs-fe
cmds:
- pnpm install
- npx pnpm build
sources:
- src/**/*.*
- tsconfig.json
- vite.config.js
generates:
- dist/core-jobs.js
build-core-versions-fe:
dir: core-versions-fe
cmds:
- pnpm install
- npx pnpm build
sources:
- src/**/*.*
- tsconfig.json
- vite.config.js
generates:
- dist/core-versions.js
create:
silent: true
cmds:
- echo "This will create a new FE module called '{{.CLI_ARGS}}'"
- echo "COMMAND-C to cancel or any key to continue"
- read
- pnpm create vite {{.CLI_ARGS}}-fe --template react-ts
- cd {{.CLI_ARGS}}-fe && pnpm add --save-peer react react-dom react-admin @mui/material @mui/icons-material
- cd {{.CLI_ARGS}}-fe && pnpm add -D @faker-js/faker vite-plugin-dts
- mkdir -p cd {{.CLI_ARGS}}-fe/src/{{.CLI_ARGS}}
# - BACKEND
- mkdir {{.CLI_ARGS}}