chore: update build scripts for both SPAs

- build:admin: builds admin-spa
- build:customer: builds customer-spa
- build: builds both admin and customer SPAs
- dev:customer: added dev server for customer-spa
This commit is contained in:
Dwindi Ramadhana
2026-01-03 17:36:50 +07:00
parent b010a88619
commit 91ae4956e0

View File

@@ -2,12 +2,13 @@
"scripts": { "scripts": {
"dev": "cd admin-spa && npm run dev", "dev": "cd admin-spa && npm run dev",
"dev:admin": "cd admin-spa && npm run dev", "dev:admin": "cd admin-spa && npm run dev",
"build:admin": "cd admin-spa && npm i && npm run build && mkdir -p ../admin-spa/dist && cp -r admin-spa/dist/* plugin/admin-spa/dist/ 2>/dev/null || true", "dev:customer": "cd customer-spa && npm run dev",
"build:customer": "echo \"(todo) customer-spa build\"", "build:admin": "cd admin-spa && npm install && npm run build",
"build:customer": "cd customer-spa && npm install && npm run build",
"build": "npm run build:admin && npm run build:customer", "build": "npm run build:admin && npm run build:customer",
"pack": "node scripts/package-zip.mjs" "pack": "node scripts/package-zip.mjs"
}, },
"dependencies": { "dependencies": {
"@radix-ui/react-tooltip": "^1.2.8" "@radix-ui/react-tooltip": "^1.2.8"
} }
} }