Optimize Windows deployment scripts: build cache, console integration, and .env.example handling

Build-ROA2WEB.ps1 improvements:
- Add intelligent npm node_modules caching (saves 2-5 minutes on repeated builds)
- Cache stored outside deploy-package in .build-cache/ directory
- Add Clean Cache menu option ([C]) and -CleanCache parameter
- Include ROA2WEB-Console.ps1 in deployment package
- Update README workflow to use unified console (interactive and CLI modes)
- Remove obsolete script references (Manage-ROA2WEB.ps1, Deploy-*.ps1)
- Fix .env.example copying for backend and telegram-bot (copy from source instead of hardcoded template)

ROA2WEB-Console.ps1 improvements:
- Fix PowerShell parsing error: ${ComponentName}: instead of $ComponentName:
- Add .env.example copying in Update-BackendFiles function
- Add .env.example copying in Update-TelegramBotFiles function
- Keep .env.example synchronized with development templates

.gitignore:
- Add .build-cache/ to prevent committing npm cache directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-12 02:04:31 +02:00
parent 1832684aca
commit 016c309d70
3 changed files with 214 additions and 61 deletions

5
.gitignore vendored
View File

@@ -354,6 +354,11 @@ deployment/windows/deploy-package/
deploy-package/
**/deploy-package/
# Build cache (npm node_modules cache for faster builds)
deployment/windows/.build-cache/
.build-cache/
**/.build-cache/
# Deployment logs and temporary files
deployment/windows/scripts/*.log
deployment/windows/temp/