47 lines
856 B
TOML
47 lines
856 B
TOML
["dev"]
|
|
run = 'mise dev:tmux'
|
|
|
|
["dev:tmux"]
|
|
description = 'Run BE & FE in tmux'
|
|
run = [
|
|
'tmux new-window "cd backend; go install; PORT=8912 air"',
|
|
'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'
|