- Updated `.gitignore` to clarify environment variable handling. - Enhanced `pnpm-lock.yaml` with new dependencies for Jest and Supertest, including type definitions. - Improved bilingual documentation in `SKILL.md` files for better clarity on comment patterns and project rules. - Refined `docker-compose.yml` for local development, adding detailed instructions and access points. - Updated environment variable example in `env.local.example` for better guidance on configuration. - Removed outdated architecture documentation from the service template. - Enhanced Dockerfile for improved security and performance during builds. - Added Swagger documentation setup in the service template for better API documentation. - Improved error handling and logging middleware for enhanced debugging capabilities.
65 lines
1.9 KiB
JSON
65 lines
1.9 KiB
JSON
{
|
|
"name": "@goodgo/service-template",
|
|
"version": "1.0.0",
|
|
"description": "Template for creating new microservices",
|
|
"main": "./dist/main.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/main.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/main.js",
|
|
"test": "jest",
|
|
"test:unit": "jest --testPathPattern='src/modules/.*\\.test\\.ts$'",
|
|
"test:e2e": "jest --testPathPattern='src/__tests__/.*\\.e2e\\.ts$'",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"lint": "eslint src --ext .ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:migrate": "prisma migrate dev",
|
|
"prisma:deploy": "prisma migrate deploy",
|
|
"prisma:seed": "tsx prisma/seed.ts",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@goodgo/auth-sdk": "workspace:*",
|
|
"@goodgo/logger": "workspace:*",
|
|
"@goodgo/tracing": "workspace:*",
|
|
"@goodgo/types": "workspace:*",
|
|
"@prisma/client": "^5.9.1",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^17.2.3",
|
|
"express": "^4.18.2",
|
|
"express-rate-limit": "^7.1.5",
|
|
"helmet": "^7.1.0",
|
|
"ioredis": "^5.3.2",
|
|
"opossum": "^9.0.0",
|
|
"prom-client": "^15.1.3",
|
|
"rate-limit-redis": "^4.3.1",
|
|
"swagger-jsdoc": "^6.2.8",
|
|
"swagger-ui-express": "^5.0.1",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@goodgo/eslint-config": "workspace:*",
|
|
"@goodgo/tsconfig": "workspace:*",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/dotenv": "^8.2.3",
|
|
"@types/express": "^4.17.21",
|
|
"@types/ioredis": "^5.0.0",
|
|
"@types/jest": "^29.5.11",
|
|
"@jest/globals": "^29.7.0",
|
|
"@types/node": "^20.11.0",
|
|
"@types/opossum": "^8.1.9",
|
|
"@types/supertest": "^6.0.2",
|
|
"@types/swagger-jsdoc": "^6.0.1",
|
|
"@types/swagger-ui-express": "^4.1.6",
|
|
"jest": "^29.7.0",
|
|
"prisma": "^5.9.1",
|
|
"supertest": "^7.0.0",
|
|
"ts-jest": "^29.1.2",
|
|
"ts-node": "^10.9.2",
|
|
"tsx": "^4.7.1",
|
|
"typescript": "^5.3.3"
|
|
}
|
|
}
|