feat: add automated deployment ZIP creation with PowerShell script
- Add create-deployment-zip.ps1 script for automated ZIP packaging - Include npm scripts: build:deploy and create-zip for streamlined deployment - Fix PowerShell encoding issues by replacing emojis with text labels - Automatically package production-ready files: .next, public, .env.production, server.js, etc. - ZIP filename uses package.json name and version (e.g., nodemap-1.1.305.zip) - Add file existence validation and detailed logging for deployment process - Clean temporary files after ZIP creation The script creates a complete deployment package (84MB) containing all necessary files for production deployment, streamlining the build and packaging workflow.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nodemap",
|
||||
"version": "1.1.305",
|
||||
"version": "1.1.306",
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.13.3",
|
||||
"@emotion/styled": "^11.13.0",
|
||||
@@ -39,6 +39,8 @@
|
||||
"scripts": {
|
||||
"dev": "node server.js",
|
||||
"build": "next build",
|
||||
"build:deploy": "next build && npm run create-zip",
|
||||
"create-zip": "powershell -ExecutionPolicy Bypass -File ./scripts/create-deployment-zip.ps1",
|
||||
"start": "cross-env NODE_ENV=production node server.js",
|
||||
"export": "next export",
|
||||
"test": "jest",
|
||||
|
||||
Reference in New Issue
Block a user