auto-claude: subtask-1-4 - Document missing scripts referenced in package.json
- Added 'Missing Scripts' section to scripts/README.md - Documented generate-blog-images.mjs (referenced in package.json but not implemented) - Included package.json references, description, recommended actions, and impact - Suggests either removing references or implementing the script with OpenAI API Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -308,6 +308,36 @@ npm run build:images # Runs optimize-images.js
|
||||
**Issue:** Missing routes in sitemap
|
||||
**Solution:** Update static page, blog post, or project arrays in `generate-sitemap.js`
|
||||
|
||||
## Missing Scripts
|
||||
|
||||
### `generate-blog-images.mjs`
|
||||
|
||||
**Status:** ❌ **MISSING** - Referenced in package.json but not implemented
|
||||
|
||||
**Package.json References:**
|
||||
```json
|
||||
"generate:images": "node scripts/generate-blog-images.mjs"
|
||||
"generate:images:dry": "node scripts/generate-blog-images.mjs --dry-run"
|
||||
```
|
||||
|
||||
**Description (from spec):**
|
||||
This script is intended to generate AI-powered images for blog posts using the OpenAI API. It should support a `--dry-run` flag for testing without actually generating images.
|
||||
|
||||
**Recommended Action:**
|
||||
Choose one of the following:
|
||||
1. **Remove references** - If AI image generation is not needed, remove the npm scripts from package.json
|
||||
2. **Implement the script** - Create the script with the following features:
|
||||
- OpenAI API integration for image generation
|
||||
- `--dry-run` flag support for testing
|
||||
- Process blog posts and generate featured images
|
||||
- Proper error handling and progress logging
|
||||
- API key management (environment variables)
|
||||
|
||||
**Impact:**
|
||||
Running `npm run generate:images` or `npm run generate:images:dry` will fail with "Cannot find module" error until this is resolved.
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Scripts use both `.js` (CommonJS) and `.mjs` (ES Module) extensions
|
||||
|
||||
Reference in New Issue
Block a user