-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmise.toml
More file actions
50 lines (40 loc) · 1.25 KB
/
mise.toml
File metadata and controls
50 lines (40 loc) · 1.25 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
[tools]
node = '22'
[hooks]
# Enabling corepack will install the `pnpm` package manager specified in your package.json
# alternatively, you can also install `pnpm` with mise
postinstall = 'npx corepack enable'
[settings]
# This must be enabled to make the hooks work
experimental = true
[env]
_.path = ['{{config_root}}/node_modules/.bin']
[tasks.pnpm-install]
description = 'Installs dependencies with pnpm'
run = 'pnpm install'
sources = ['package.json', 'pnpm-lock.yaml', 'mise.toml']
outputs = ['node_modules/.pnpm/lock.yaml']
[tasks.dev]
description = 'Calls your dev script in `package.json`'
run = 'node --run dev'
depends = ['pnpm-install']
[tasks.check]
description = 'Calls your check script in `package.json`'
run = 'node --run check'
depends = ['pnpm-install']
[tasks.build]
description = 'Calls your build script in `package.json`'
run = 'node --run build'
depends = ['pnpm-install']
[tasks.build-storybook]
description = "Build Storybook"
run = 'pnpm storybook build'
depends = ['pnpm-install']
[tasks.playwright-install]
description = 'Install playwright dependencies'
run = 'pnpm exec playwright install --with-deps'
depends = ['pnpm-install']
[tasks.test-unit]
description = "Run unit tests"
run = 'pnpm test:unit'
depends = ['playwright-install']