Move from Create React to Vite
Some checks failed
CI / Go tests & lint (push) Successful in 9s
CI / Frontend tests & type-check (push) Failing after 14s

This commit is contained in:
2026-04-09 10:44:50 -03:00
parent a8e170f7e1
commit 8344bf016f
27 changed files with 1746 additions and 16621 deletions

View File

@@ -3,7 +3,7 @@ version: '3'
vars:
BINARY: walkies
WEB_DIR: web
STATIC_DIR: "{{.WEB_DIR}}/build"
STATIC_DIR: "{{.WEB_DIR}}/dist"
tasks:
default:
@@ -31,14 +31,16 @@ tasks:
- public/**/*
- package.json
- tsconfig.json
- vite.config.ts
- index.html
generates:
- build/**/*
- dist/**/*
web:dev:
desc: Start frontend dev server (hot reload on :3000)
dir: "{{.WEB_DIR}}"
deps: [web:install]
cmd: npm start
cmd: npm run dev
web:test:
desc: Run frontend tests
@@ -121,7 +123,7 @@ tasks:
desc: Remove build artifacts
cmds:
- rm -f {{.BINARY}}
- rm -rf {{.WEB_DIR}}/build
- rm -rf {{.WEB_DIR}}/dist
tidy:
desc: Tidy Go modules