f804ad8a41
check-toolchain.sh now covers: - golangci-lint - npm - web/ui node_modules (JS deps) - electron node_modules (electron deps) New install-all task (scripts/install-deps.sh): - mise install (go, node, golangci-lint) - cd web/ui && npm install - cd electron && npm install Usage: mise run check-toolchain # audit everything mise run install-all # install all deps from scratch
29 lines
1.3 KiB
TOML
29 lines
1.3 KiB
TOML
[tools]
|
|
go = "1.26"
|
|
golangci-lint = "latest"
|
|
node = "22.12"
|
|
|
|
[env]
|
|
CGO_ENABLED = "0"
|
|
|
|
[tasks]
|
|
build = "go build -buildvcs=false -o fetch ."
|
|
akaiutil = "make -C third_party/akaiutil"
|
|
all = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil" }
|
|
serve = { run = "go build -buildvcs=false -o fetch . && ./fetch serve" }
|
|
lint = "golangci-lint run"
|
|
js-lint = "cd web/ui && npm run lint"
|
|
js-test = "cd web/ui && npm test"
|
|
electron-deps = "cd electron && npm install"
|
|
electron-dev = { run = "go build -buildvcs=false -o fetch . && cd electron && npx electron ." }
|
|
electron-build = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil && cd electron && npx electron-builder --dir" }
|
|
electron-build-mac = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil && cd electron && npx electron-builder --mac --dir" }
|
|
init = "mkdir -p output/isos output/wavs"
|
|
docker-up = "mkdir -p output/isos output/wavs && docker compose up --build"
|
|
docker-build = "docker build -t akai-fetch ."
|
|
check-toolchain = "bash scripts/check-toolchain.sh"
|
|
install-all = "bash scripts/install-deps.sh"
|
|
check-docker-toolchain = "bash scripts/check-docker-toolchain.sh"
|
|
check-all = { run = "bash scripts/check-toolchain.sh && echo '' && bash scripts/check-docker-toolchain.sh" }
|
|
gopls = "go install golang.org/x/tools/gopls@latest"
|