feat(build): add fmt/lint/test tasks
This commit is contained in:
38
tasks.toml
38
tasks.toml
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user