-
Notifications
You must be signed in to change notification settings - Fork 0
/
mise.toml
87 lines (68 loc) · 2.39 KB
/
mise.toml
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
[tools]
node = '22'
[env]
_.path = ["./docs/node_modules/.bin", "./node_modules/.bin"]
[tasks."docs:extractSettings"]
run = 'bun src/extract-settings.mjs'
dir = "{{config_root}}/docs"
[tasks."docs:dev"]
alias = 'docs'
description = 'Builds the documentation'
run = 'exec node --run dev'
dir = "{{config_root}}/docs"
depends = ['docs:extractSettings', 'install']
[tasks."docs:build"]
run = 'node --run build'
dir = "{{config_root}}/docs"
[tasks."docs:preview"]
run = 'node --run preview'
dir = "{{config_root}}/docs"
depends = ['docs:build']
[tasks.install]
description = 'Installs dependencies with pnpm'
run = 'corepack enable && pnpm install'
sources = ['package.json', 'pnpm-lock.yaml', 'mise.toml']
outputs = ['node_modules/.pnpm/lock.yaml']
[tasks.start-vscode]
description = 'Starts VSCode with the extension loaded'
run = 'code --inspect-extensions=5858 --extensionDevelopmentPath=$(pwd)'
sources = ['src/**', 'mise.toml', 'package.json', 'syntaxes/**']
[tasks.watch-vscode]
run = 'mise watch -t start-vscode'
[tasks.start-vscode-inspect-brk]
description = 'Starts VSCode with the extension loaded. Pauses on the first line of the extension'
run = 'code --inspect-brk-extensions=5858 --extensionDevelopmentPath=$(pwd)'
[tasks.dev-extension]
depends = ['install']
description = 'Builds the project in watch mode'
run = 'rsbuild dev'
[tasks.dev-webviews]
description = 'Webviews'
run = 'node --run dev-webviews'
depends = ['install']
[tasks.dev]
description = 'Starts the project in watch mode and opens the extension in VSCode'
depends = ['dev-extension', 'dev-webviews', 'start-vscode']
[tasks.dev-reload-vscode]
description = 'Starts the project in watch mode and opens the extension in VSCode. Reload VSCode on changes'
depends = ['dev-extension', 'dev-webviews', 'watch-vscode']
[tasks.ts-check]
description = 'Type-check the project'
run = 'node --run ts-check'
sources = ['src/**/*.ts']
[tasks.biome-lint]
description = 'Lint the project with biome'
run = 'node --run lint'
sources = ['src/**/*.ts']
[tasks.lint]
description = 'Lint the project + type-check'
depends = ['ts-check', 'biome-lint']
[tasks.lint-fix]
description = 'Lint the project + type-check and fix issues'
run = 'node --run lint-fix'
[tasks.test]
description = 'Run tests (with bun)'
run = 'node --run test'
[tasks.check]
description = "Lint, type-check, and test the project"
depends = ['lint-fix', 'test', 'ts-check', 'docs:extractSettings']