mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
598aac0e6b
Critical Infrastructure Protection: - Comprehensive test suite for all API endpoints - Pre-deployment validation script - Detailed API architecture documentation in CLAUDE.md Test Suite (__tests__/endpoints.test.js): - Critical endpoint availability checks - Component download tracking validation - Discord bot integration tests - Claude Code changelog monitor tests - Security & CORS validation - Response time validation Pre-Deployment Script (scripts/predeploy-check.sh): - Git status validation - Node.js & npm version checks - Automatic dependency installation - API test execution - File structure validation - Environment variable checklist - Vercel configuration validation Documentation Updates: - API Architecture & Deployment section in CLAUDE.md - Endpoint specifications and usage - Testing procedures - Deployment workflow - Troubleshooting guides - Emergency rollback procedures - api/README.md with quick reference This ensures the critical /api/track-download-supabase endpoint (used by ALL component installations) never breaks during deployments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
693 B
JSON
24 lines
693 B
JSON
{
|
|
"type": "module",
|
|
"name": "claude-code-templates-api",
|
|
"version": "1.0.0",
|
|
"description": "API endpoints for claude-code-templates",
|
|
"scripts": {
|
|
"test": "jest --config jest.config.cjs",
|
|
"test:api": "jest __tests__/endpoints.test.js --config jest.config.cjs",
|
|
"test:watch": "jest --watch --config jest.config.cjs",
|
|
"test:coverage": "jest --coverage --config jest.config.cjs"
|
|
},
|
|
"dependencies": {
|
|
"@vercel/postgres": "^0.10.0",
|
|
"@supabase/supabase-js": "^2.45.0",
|
|
"@neondatabase/serverless": "^0.10.1",
|
|
"axios": "^1.6.2",
|
|
"discord-interactions": "^3.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"jest": "^29.7.0",
|
|
"@types/jest": "^29.5.11"
|
|
}
|
|
}
|