feat(build): add fmt/lint/test tasks

This commit is contained in:
2025-10-17 23:22:58 +03:00
parent 60a0120b58
commit 8e9c9585f2
13 changed files with 256 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
[dev]
["dev"]
run = 'mise dev:tmux'
["dev:tmux"]
@@ -8,3 +8,39 @@ run = [
'tmux split-window "cd frontend; bun install; PORT=8913 bun src/index.tsx"',
'sleep 0.1 && (xdg-open "http://localhost:8913" || open "http://localhost:8913")'
]
["format"] # fmt collides with built-in `mise fmt`
run = [
'mise format:backend',
'mise format:frontend'
]
["format:backend"]
run = 'gofmt -w backend/'
["format:frontend"]
run = 'bun --cwd frontend eslint --fix'
["test"]
run = [
'mise test:backend',
'mise test:frontend'
]
["test:backend"]
run = 'echo TODO > /dev/null'
["test:frontend"]
run = 'bun test'
["lint"]
run = [
'mise lint:backend',
'mise lint:frontend'
]
["lint:backend"]
run = 'echo TODO > /dev/null'
["lint:frontend"]
run = 'bun --cwd frontend eslint'