- 重构项目结构:controllers/services -> modules模块化组织 - 新增Drizzle ORM集成和数据库schema定义 - 添加完整的开发规范文档(.cursor/rules/) - 重新组织插件结构为子目录方式 - 新增用户模块和示例代码 - 更新类型定义并移除试验性代码 - 添加API文档和JWT使用示例 关联任务计划文档
60 lines
1.9 KiB
JSON
60 lines
1.9 KiB
JSON
{
|
||
"name": "cursor-init",
|
||
"version": "0.1.0",
|
||
"description": "Bun + Elysia 后端API项目,支持MySQL、JWT、Swagger、Vitest等",
|
||
"author": "hotok <x71291@outlook.com>",
|
||
"license": "MIT",
|
||
"repository": {
|
||
"type": "gitea",
|
||
"url": "git+https://github.com/yourname/yourrepo.git"
|
||
},
|
||
"type": "module",
|
||
"private": true,
|
||
"engines": {
|
||
"bun": ">=1.0.25"
|
||
},
|
||
"devDependencies": {
|
||
"@types/bun": "^1.0.25",
|
||
"@types/redis": "^4.0.11",
|
||
"@types/winston": "^2.4.4",
|
||
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
||
"@typescript-eslint/parser": "^8.35.0",
|
||
"drizzle-kit": "^0.31.4",
|
||
"eslint": "^9.29.0",
|
||
"eslint-config-prettier": "^10.1.5",
|
||
"prettier": "^3.6.2",
|
||
"typescript": "^5.8.3",
|
||
"vitest": "^3.2.4"
|
||
},
|
||
"dependencies": {
|
||
"@elysiajs/jwt": "^1.3.1",
|
||
"@elysiajs/swagger": "^1.3.0",
|
||
"@types/ua-parser-js": "^0.7.39",
|
||
"chalk": "^5.4.1",
|
||
"drizzle-orm": "^0.44.2",
|
||
"mysql2": "^3.14.1",
|
||
"nanoid": "^5.1.5",
|
||
"picocolors": "^1.1.1",
|
||
"redis": "^5.5.6",
|
||
"ua-parser-js": "^2.0.4",
|
||
"undici": "^7.11.0",
|
||
"winston": "^3.17.0",
|
||
"winston-daily-rotate-file": "^5.0.0"
|
||
},
|
||
"scripts": {
|
||
"dev": "bun --watch --env-file=.env --hot src/server.ts",
|
||
"start": "bun --env-file=.env.prod src/server.ts",
|
||
"test": "bun test",
|
||
"vitest": "bun --env-file=.env x vitest run",
|
||
"test:watch": "bun test --watch",
|
||
"lint": "eslint .",
|
||
"lint:fix": "eslint . --fix",
|
||
"format": "prettier --write .",
|
||
"format:check": "prettier --check .",
|
||
"check": "bun run lint && bun run format:check",
|
||
"fix": "bun run lint:fix && bun run format",
|
||
"demo:logger": "bun src/demo/logger-demo.ts",
|
||
"demo:logger:prod": "NODE_ENV=production bun src/demo/logger-demo.ts"
|
||
}
|
||
}
|