-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
111 lines (93 loc) · 2.32 KB
/
Copy path.mise.toml
File metadata and controls
111 lines (93 loc) · 2.32 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
103
104
105
106
107
108
109
110
111
[tools]
node = "24.0.0"
pnpm = "latest"
[shell_alias]
m = "mise run"
i = "mise run install"
l = "mise run lint"
f = "mise run format"
t = "mise run test"
b = "mise run build"
d = "mise run dev"
s = "mise run start"
v = "mise run verify"
g = "git"
gs = "git status"
gb = "git branch"
gco = "git checkout"
gl = "git log"
ga = "git add"
gc = "git commit"
gp = "git push"
gr = "git rebase --merge"
[tasks.install]
description = "Install dependencies"
run = "pnpm install"
alias = "i"
[tasks.dev]
description = "Start development server"
run = "pnpm run dev"
alias = "d"
[tasks.build]
description = "Build the project"
run = "pnpm run build"
alias = "b"
[tasks.start]
description = "Start production server"
run = "pnpm run start"
alias = "s"
[tasks.lint]
description = "Run linting"
run = "pnpm run lint"
alias = "l"
[tasks.format]
description = "Run formatting"
run = "pnpm run format"
alias = "f"
[tasks.typecheck]
description = "Run typechecking"
run = "pnpm run typecheck"
[tasks.test]
description = "Run unit tests"
run = "pnpm run test"
alias = "t"
[tasks."test:ui"]
description = "Run unit tests with UI"
run = "pnpm run test:ui"
[tasks."test:coverage"]
description = "Run unit tests with coverage"
run = "pnpm run test:coverage"
[tasks."test:e2e"]
description = "Run E2E tests"
run = "pnpm run test:e2e"
[tasks."test:e2e:ui"]
description = "Run E2E tests with UI"
run = "pnpm run test:e2e:ui"
[tasks."verify"]
description = "Run all tests"
depends = ["lint", "typecheck", "test", "test:coverage", "test:e2e", "test:e2e:ui"]
alias = "v"
[tasks."playwright:install"]
description = "Install Playwright browsers"
run = "pnpm exec playwright install --with-deps"
[tasks."deploy:firebase"]
description = "Deploy the site to Firebase"
run = """
pnpm add -g firebase-tools
pnpm install
pnpm run build
if [ "$FIREBASE_ENV" = "production" ]; then
firebase deploy --only hosting:site --token=$FIREBASE_TOKEN
else
firebase hosting:channel:deploy site --expires 7d --token=$FIREBASE_TOKEN
fi
"""
[tasks."deploy:vercel"]
description = "Deploy the site to Vercel"
run = """
pnpm add -g vercel
pnpm install
vercel pull --yes --environment=$VERCEL_ENV --token=$VERCEL_TOKEN
vercel build $([ "$VERCEL_ENV" = "production" ] && echo "--prod") --token=$VERCEL_TOKEN
vercel deploy --prebuilt $([ "$VERCEL_ENV" = "production" ] && echo "--prod") --token=$VERCEL_TOKEN
"""