-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
52 lines (48 loc) · 1.03 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
---
version: 3
vars:
UI_DIRECTORY: ui
tasks:
ui:deps:
desc: Install UI dependencies
dir: "{{ .UI_DIRECTORY }}"
cmd: |
docker run --rm --name yarn \
-v $(pwd):/app \
-w /app \
node:lts-alpine \
yarn install --frozen-lockfile --non-interactive --no-progress --production=false
sources:
- package.json
- yarn.lock
ui:build:
desc: Build UI
dir: "{{ .UI_DIRECTORY }}"
deps: [ ui:deps ]
cmd: |
docker run --rm --name yarn \
-v $(pwd):/app \
-w /app \
node:lts-alpine \
yarn build --mode production
sources:
- src/**/*
- .eslintrc.cjs
- index.html
- postcss.config.js
- tailwind.config.ts
- tsconfig.json
- tsconfig.node.json
- vite.config.ts
generates:
- dist/**/*
ui:setup:
desc: Start yarn container
dir: "{{ .UI_DIRECTORY }}"
deps: [ ui:deps ]
cmd: |
docker run -it --rm --name yarn \
-v $(pwd):/app \
-w /app \
node:lts-alpine \
sh