-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
102 lines (83 loc) · 2.76 KB
/
taskfile.yaml
File metadata and controls
102 lines (83 loc) · 2.76 KB
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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
output: prefixed
tasks:
default:
interactive: true
silent: true
cmd: task --list --sort=none --output=interleaved
dev:desktop:
desc: Start desktop app development servers
interactive: true
env:
LOG_LEVEL: INFO
cmd: nx run desktop:dev {{.CLI_ARGS}}
lint:
desc: Check code for common problems
interactive: true
cmd: pnpm nx run-many --targets=lint --targets=lint:format --nxBail {{.CLI_ARGS}}
test:
desc: Test code for common problems (fast, local development)
interactive: true
cmd: pnpm nx run-many --targets=test {{.CLI_ARGS}}
test:ci:
desc: Test code with JSON output for CI
interactive: true
cmd: pnpm nx run-many --targets=test:ci {{.CLI_ARGS}}
fix:
desc: Automatically fix common problems
deps:
- fix:prettier
- fix:syncpack
fix:prettier:
cmd: pnpm prettier --write .
fix:syncpack:
deps:
- fix:syncpack:format
- fix:syncpack:mismatches
fix:syncpack:format:
cmd: pnpm syncpack format
fix:syncpack:mismatches:
cmds:
- pnpm syncpack fix-mismatches
- pnpm install
update:
desc: Update project dependencies
deps:
- update:flake
- update:pnpm
update:flake:
cmd: nix flake update
update:pnpm:
interactive: true
cmds:
- aikido-pnpm update --recursive --interactive --latest
- task: fix:syncpack:mismatches
storybook:
desc: Start the Storybook composition
interactive: true
cmd: nx run storybook:storybook
version-plan:
interactive: true
desc: Create a version plan for the specified project
requires:
vars:
- name: project
enum: [api-recorder-extension, desktop, cli]
cmd: nx release plan --onlyTouched=false --projects={{.project}}
benchmark:run:
desc: Run benchmarks (standard go test)
cmds:
- mkdir -p .bench
- go test -bench=. -benchmem -run=^$ -count=3 -timeout=30m ./packages/server/... ./packages/db/... ./apps/cli/... | tee .bench/current.txt
- go run tools/benchmark/*.go parse --input .bench/current.txt --output .bench/current.json
benchmark:baseline:
desc: Run benchmarks and save as baseline
cmds:
- mkdir -p .bench
- go test -bench=. -benchmem -run=^$ -count=3 -timeout=30m ./packages/server/... ./packages/db/... ./apps/cli/... | tee .bench/baseline.txt
- go run tools/benchmark/*.go parse --input .bench/baseline.txt --output .bench/baseline.json
benchmark:compare:
desc: Compare current results with baseline
cmds:
- go run tools/benchmark/*.go compare --baseline .bench/baseline.txt --current .bench/current.txt --output-json .bench/comparison.json --output-md .bench/comparison.md