remove: obsolete HTML template processing system
- Remove index.html.template (template processing never implemented) - Fix empty title in index.html by adding proper default title - Update documentation to remove references to non-existent: - scripts/process-html.sh - predev/prebuild npm scripts - HTML template processing workflow - Simplifies build process and fixes broken page title
This commit is contained in:
@@ -8,8 +8,7 @@ rxminder/
|
||||
├── 📦 package.json # Dependencies and scripts
|
||||
├── ⚙️ vite.config.ts # Build configuration
|
||||
├── 📝 tsconfig.json # TypeScript configuration
|
||||
├── 🎨 index.html # Generated entry point
|
||||
├── 🎨 index.html.template # Template for HTML generation
|
||||
├── 🎨 index.html # Application entry point
|
||||
├── 🔒 .env.example # Environment template
|
||||
├── 📊 metadata.json # Project metadata
|
||||
├── 🖼️ banner.jpeg # Project banner image
|
||||
@@ -99,7 +98,6 @@ rxminder/
|
||||
│
|
||||
├── 📁 scripts/ # Development and build scripts
|
||||
│ ├── 🔧 setup.sh # Development setup
|
||||
│ ├── 🎨 process-html.sh # HTML template processing
|
||||
│ ├── 🧹 setup-pre-commit.sh # Git hooks setup
|
||||
│ └── 🌱 seed-production.js # Database seeding
|
||||
│
|
||||
@@ -207,9 +205,9 @@ Centralized configuration with environment-based templates:
|
||||
config/
|
||||
└── unified.config.ts # Single source of truth
|
||||
|
||||
# Template approach
|
||||
index.html.template → index.html # Processed with environment variables
|
||||
# Configuration approach
|
||||
.env.example → .env # User customization
|
||||
config/unified.config.ts # Centralized configuration
|
||||
```
|
||||
|
||||
**Benefits:**
|
||||
@@ -274,7 +272,6 @@ docs/
|
||||
2. **Template Processing**
|
||||
|
||||
```bash
|
||||
bun run predev # Process HTML templates
|
||||
bun run dev # Start development server
|
||||
```
|
||||
|
||||
|
||||
@@ -159,23 +159,20 @@ APP_NAME=MedicationTracker
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Common Issues
|
||||
1. **App name not displaying**: Check `config/unified.config.ts` for correct `APP_NAME` value
|
||||
2. **Docker build fails**: Check that environment variables are properly set
|
||||
|
||||
1. **HTML title not updating**: Ensure `index.html.template` exists and `process-html.sh` runs
|
||||
2. **Docker build fails**: Check that `APP_NAME` doesn't contain invalid characters for Docker tags
|
||||
3. **Kubernetes deployment fails**: Verify `APP_NAME` follows Kubernetes naming conventions
|
||||
|
||||
### Validation
|
||||
## Testing
|
||||
|
||||
```bash
|
||||
# Test HTML processing
|
||||
APP_NAME=TestApp ./scripts/process-html.sh
|
||||
# Test configuration
|
||||
bun run config
|
||||
|
||||
# Test Docker build
|
||||
APP_NAME=TestApp make deploy
|
||||
# Test build
|
||||
bun run build
|
||||
|
||||
# Check generated files
|
||||
grep -r "TestApp" dist/
|
||||
# Check configuration values
|
||||
bun run config:env
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
|
||||
Reference in New Issue
Block a user