``update Add Docker build and deployment workflow for CMS and Ionic Mobile, update docker-compose.yml with new service images, and enhance documentation with strategy diagram and endpoint table``

This commit is contained in:
2025-05-24 08:21:33 +08:00
parent 1157bf0fda
commit cb8643b405
16 changed files with 462 additions and 85 deletions

View File

@@ -3,12 +3,20 @@
"private": true,
"version": "0.0.1",
"type": "module",
"engines": {
"node": "==22"
},
"scripts": {
"dev": "vite --host --cors --force --strictPort --clearScreen",
"build": "tsc && vite build && npx cap copy",
"build:docker": "pnpm run build && pnpm run docker:build && pnpm run docker:push",
"build:w": "npx nodemon --ext ts,tsx,json,mjs,js,jsx --delay 15 --exec \"pnpm run build\"",
"docker:push": "docker push 192.168.10.61:5000/demo_ionic_mobile",
"docker:build": "docker build -t 192.168.10.61:5000/demo_ionic_mobile .",
"ionic_build": "npx vite build && npx cap copy",
"ionic_sync": "npx cap sync --inline",
"ionic_pre_android_studio": "npm run ionic_build && npm run ionic_sync",
"start": "npx http-serve dist",
"preview": "vite preview",
"test.e2e": "cypress run",
"test.unit": "vitest",
@@ -43,6 +51,7 @@
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"axios": "^1.8.1",
"http-serve": "^1.0.1",
"i18next": "^24.2.0",
"ionicons": "^7.0.0",
"lodash": "^4.17.21",
@@ -89,8 +98,5 @@
"vite": "~5.2.0",
"vitest": "^0.34.6"
},
"description": "An Ionic project",
"engines": {
"node": "==22"
}
}
"description": "An Ionic project"
}