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:
@@ -2,8 +2,9 @@
|
||||
"scripts": {
|
||||
"dev": "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",
|
||||
"build:customer": "echo \"(todo) customer-spa build\"",
|
||||
"dev:customer": "cd customer-spa && npm run dev",
|
||||
"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",
|
||||
"pack": "node scripts/package-zip.mjs"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user