docfast/scripts
Hoid 6fd707ab64
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 11m51s
feat: Add JS minification to build pipeline and expand test coverage
Task 1: Add JS minification to build pipeline (fix BUG-053)
- Update scripts/build-html.cjs to minify JS files in-place with terser
- Modified public/src/index.html and status.html to reference original JS files
- Add TDD test to verify JS minification works correctly

Task 2: Expand test coverage for untested routes
- Add tests for /v1/usage endpoint (auth required, admin access checks)
- Add tests for /v1/billing/checkout route (rate limiting, config checks)
- Add tests for rate limit headers on PDF conversion endpoints
- Add tests for 404 handler JSON error format for API vs HTML routes
- All tests follow TDD principles (RED → GREEN)

Task 3: Update swagger-jsdoc to fix npm audit vulnerability
- Upgraded swagger-jsdoc to 7.0.0-rc.6
- Resolved minimatch vulnerability via npm audit fix
- Verified OpenAPI generation still works correctly
- All 52 tests passing, 0 vulnerabilities remaining

Build improvements and security hardening complete.
2026-02-25 10:05:50 +00:00
..
borg-backup.sh Add comprehensive backup and restore infrastructure 2026-02-15 11:06:42 +00:00
borg-offsite.sh Add off-site BorgBackup to Hetzner Storage Box 2026-02-16 18:05:44 +00:00
borg-restore.sh Add comprehensive backup and restore infrastructure 2026-02-15 11:06:42 +00:00
build-html.cjs feat: Add JS minification to build pipeline and expand test coverage 2026-02-25 10:05:50 +00:00
docfast-backup.sh Add complete infrastructure automation and documentation 2026-02-15 11:04:34 +00:00
generate-openapi.mjs v0.4.1: Code-driven OpenAPI docs via swagger-jsdoc 2026-02-20 07:54:37 +00:00
healthcheck-monitor.sh fix: BUG-053,055,058,060,061,067,069 - JS minification, meta tags, skip-link, docs footer 2026-02-17 18:03:59 +00:00
migrate-to-postgres.mjs Fix migration script syntax 2026-02-15 10:18:48 +00:00
rollback.sh Add CI/CD deployment pipeline with Forgejo Actions 2026-02-15 11:02:43 +00:00
setup-secrets.sh Add CI/CD deployment pipeline with Forgejo Actions 2026-02-15 11:02:43 +00:00
verify-deploy.sh ops: add post-deploy verification script and add to CI/CD workflow 2026-02-17 11:51:36 +00:00