build: frontend build refactoring
This commit is contained in:
parent
82f9a019da
commit
b5c9e3f8ff
@ -8,15 +8,9 @@
|
|||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -k \"npm:dev:go\" \"npm:dev:vite\"",
|
"dev": "vite dev",
|
||||||
"dev:vite": "vite dev",
|
"build": "npm run typecheck && vite build",
|
||||||
"dev:go": "cd .. && go run -tags dev .",
|
"clean": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitkeep' -exec rm -r {} +",
|
||||||
"build": "npm run build:vite && npm run build:go",
|
|
||||||
"build:vite": "npm run typecheck && vite build",
|
|
||||||
"build:go": "cd .. && CGO_ENABLED=0 go build",
|
|
||||||
"clean": "npm run clean:vite && npm run clean:go",
|
|
||||||
"clean:vite": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitkeep' -exec rm -r {} +",
|
|
||||||
"clean:go": "cd .. && go clean",
|
|
||||||
"typecheck": "vue-tsc -p ./tsconfig.json --noEmit",
|
"typecheck": "vue-tsc -p ./tsconfig.json --noEmit",
|
||||||
"lint": "npm run typecheck && eslint --ext .vue,.ts src/",
|
"lint": "npm run typecheck && eslint --ext .vue,.ts src/",
|
||||||
"lint:fix": "eslint --ext .vue,.ts --fix src/",
|
"lint:fix": "eslint --ext .vue,.ts --fix src/",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user