forked from a0v0/avtoolz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
64 lines (53 loc) · 1.24 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
version: 3
silent: true
tasks:
default:
desc: Show all tasks
cmd: task -a
install:
desc: Install dependencies
cmds:
- pnpm i
- pnpx playwright install chromium #--with-deps
storybook:
desc: Run storybook
cmd: pnpm storybook
run:
desc: Run development server
cmd: pnpm dev
lint:
desc: Lint code
cmd: pnpm lint
# Sometimes git is not tracking the files that are in .gitignore
# This task will fix that
# See: https://stackoverflow.com/questions/25436312/gitignore-not-working
fix_gitignore:
desc: Fix git not tracking files in .gitignore
cmds:
- git rm -rf --cached .
- git add .
test:
desc: Run tests
cmds:
- pnpm test
- pnpm test:e2e
update:
desc: Update dependencies
cmds:
- pnpm update
- pnpx playwright install chromium #--with-deps
clean:
desc: Clean project
cmds:
- sudo rm -rf .pnpm-store node_modules test-results .next out
- task: clean:temp
clean:temp:
desc: Clean temporary files and folders
cmds:
- rm -rf `find . -type d -name temp`
build:
desc: Build project
cmd: pnpm build
build_analyze:
desc: Build project with analyze
cmd: ANALYZE=true pnpm build