2024-09-28 14:58:45 +08:00
|
|
|
|
{
|
2025-01-15 10:39:14 +08:00
|
|
|
|
"name": "web2",
|
|
|
|
|
"version": "0.1.0",
|
|
|
|
|
"private": true,
|
|
|
|
|
"scripts": {
|
|
|
|
|
"------------------ db command": "----",
|
|
|
|
|
"------ db command": "生成创建数据库表结构的sql文件",
|
|
|
|
|
"dbmc": "cross-env NODE_ENV=development prisma migrate dev --create-only --skip-generate",
|
|
|
|
|
"-------- db command": "应用上面的sql文件到数据库中",
|
|
|
|
|
"dbp": "cross-env NODE_ENV=development prisma db push",
|
|
|
|
|
"------------------------- db command": "生成prisma client代码.生成ts文件(数据操作的类型、方法等)",
|
|
|
|
|
"dbg": "cross-env NODE_ENV=development prisma generate",
|
|
|
|
|
"- db command": "上面3个命令合并执行,pnpm dbm --name=update",
|
|
|
|
|
"dbm": "cross-env NODE_ENV=development prisma migrate dev --skip-seed",
|
|
|
|
|
"dbms": "cross-env NODE_ENV=development prisma migrate dev",
|
|
|
|
|
"------------- db command": "重置数据库,删除所有数据,如何重新生成数据库表结构",
|
|
|
|
|
"dbmr": "cross-env NODE_ENV=development prisma migrate reset -f --skip-seed",
|
|
|
|
|
"dbmrs": "cross-env NODE_ENV=development prisma migrate reset -f",
|
|
|
|
|
"---------- db command": "部署数据库变更到生产环境",
|
|
|
|
|
"dbmd": "cross-env NODE_ENV=production prisma migrate deploy",
|
|
|
|
|
"dbs": "prisma db seed",
|
|
|
|
|
"dev": "next dev",
|
|
|
|
|
"build": "next build",
|
|
|
|
|
"start": "next start",
|
|
|
|
|
"lint": "next lint"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@3rapp/utils": "workspace:*",
|
|
|
|
|
"@auth/prisma-adapter": "^2.7.4",
|
|
|
|
|
"@faker-js/faker": "^8.4.1",
|
|
|
|
|
"@heroicons/react": "^2.2.0",
|
|
|
|
|
"@hono/swagger-ui": "^0.4.1",
|
|
|
|
|
"@hono/zod-openapi": "^0.18.3",
|
|
|
|
|
"@hono/zod-validator": "^0.4.2",
|
|
|
|
|
"@hookform/resolvers": "^3.9.1",
|
|
|
|
|
"@mdx-js/loader": "^3.1.0",
|
|
|
|
|
"@mdx-js/react": "^3.1.0",
|
|
|
|
|
"@next/mdx": "^14.2.22",
|
|
|
|
|
"@prisma/client": "6.1.0",
|
|
|
|
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
|
|
|
"@radix-ui/react-alert-dialog": "^1.1.4",
|
|
|
|
|
"@radix-ui/react-aspect-ratio": "^1.1.1",
|
|
|
|
|
"@radix-ui/react-avatar": "^1.1.2",
|
|
|
|
|
"@radix-ui/react-checkbox": "^1.1.3",
|
|
|
|
|
"@radix-ui/react-collapsible": "^1.1.2",
|
|
|
|
|
"@radix-ui/react-context-menu": "^2.2.4",
|
|
|
|
|
"@radix-ui/react-dialog": "^1.1.4",
|
|
|
|
|
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
|
|
|
"@radix-ui/react-hover-card": "^1.1.4",
|
|
|
|
|
"@radix-ui/react-icons": "^1.3.2",
|
|
|
|
|
"@radix-ui/react-label": "^2.1.1",
|
|
|
|
|
"@radix-ui/react-menubar": "^1.1.4",
|
|
|
|
|
"@radix-ui/react-navigation-menu": "^1.2.3",
|
|
|
|
|
"@radix-ui/react-popover": "^1.1.4",
|
|
|
|
|
"@radix-ui/react-progress": "^1.1.1",
|
|
|
|
|
"@radix-ui/react-radio-group": "^1.2.2",
|
|
|
|
|
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
|
|
|
"@radix-ui/react-select": "^2.1.4",
|
|
|
|
|
"@radix-ui/react-separator": "^1.1.1",
|
|
|
|
|
"@radix-ui/react-slider": "^1.2.2",
|
|
|
|
|
"@radix-ui/react-slot": "^1.1.1",
|
|
|
|
|
"@radix-ui/react-switch": "^1.1.2",
|
|
|
|
|
"@radix-ui/react-tabs": "^1.1.2",
|
|
|
|
|
"@radix-ui/react-toast": "^1.2.4",
|
|
|
|
|
"@radix-ui/react-toggle": "^1.1.1",
|
|
|
|
|
"@radix-ui/react-toggle-group": "^1.1.1",
|
|
|
|
|
"@radix-ui/react-tooltip": "^1.1.6",
|
|
|
|
|
"@types/mdx": "^2.0.13",
|
|
|
|
|
"@vavt/cm-extension": "^1.6.0",
|
|
|
|
|
"ahooks": "^3.8.4",
|
|
|
|
|
"bcrypt": "^5.1.1",
|
|
|
|
|
"bcryptjs": "^2.4.3",
|
|
|
|
|
"class-variance-authority": "^0.7.1",
|
|
|
|
|
"clsx": "^2.1.1",
|
|
|
|
|
"cmdk": "1.0.4",
|
|
|
|
|
"cookie": "^1.0.2",
|
|
|
|
|
"cookies-next": "^5.0.2",
|
|
|
|
|
"date-fns": "^4.1.0",
|
|
|
|
|
"embla-carousel-react": "^8.5.1",
|
|
|
|
|
"hono": "^4.6.14",
|
|
|
|
|
"input-otp": "^1.4.1",
|
|
|
|
|
"ioredis": "^5.4.2",
|
|
|
|
|
"jsonwebtoken": "^9.0.2",
|
|
|
|
|
"lucide-react": "^0.441.0",
|
|
|
|
|
"md-editor-rt": "^5.1.1",
|
|
|
|
|
"micromatch": "^4.0.8",
|
|
|
|
|
"next": "15.1.3",
|
|
|
|
|
"next-auth": "5.0.0-beta.22",
|
|
|
|
|
"next-mdx-remote": "^5.0.0",
|
|
|
|
|
"next-themes": "^0.4.4",
|
|
|
|
|
"nodemailer": "^6.9.16",
|
|
|
|
|
"passport": "^0.7.0",
|
|
|
|
|
"passport-jwt": "^4.0.1",
|
|
|
|
|
"passport-local": "^1.0.0",
|
|
|
|
|
"pinyin": "4.0.0-alpha.2",
|
|
|
|
|
"prism-themes": "^1.9.0",
|
|
|
|
|
"prisma-paginate": "^5.2.1",
|
|
|
|
|
"react": "^19.0.0",
|
|
|
|
|
"react-day-picker": "9.4.4",
|
|
|
|
|
"react-dom": "^19.0.0",
|
|
|
|
|
"react-hook-form": "^7.54.2",
|
|
|
|
|
"react-icons": "^5.4.0",
|
|
|
|
|
"react-resizable-panels": "^2.1.7",
|
|
|
|
|
"react-spinners": "^0.15.0",
|
|
|
|
|
"react-use": "^17.6.0",
|
|
|
|
|
"recharts": "^2.15.0",
|
|
|
|
|
"rehype-prism-plus": "^2.0.0",
|
|
|
|
|
"resend": "^4.0.1",
|
|
|
|
|
"segmentit": "^2.0.3",
|
|
|
|
|
"sharp": "^0.33.5",
|
|
|
|
|
"sonner": "^1.7.1",
|
|
|
|
|
"tailwind-merge": "^2.6.0",
|
|
|
|
|
"tailwindcss-animate": "^1.0.7",
|
|
|
|
|
"uuid": "^10.0.0",
|
|
|
|
|
"vaul": "^1.1.2",
|
|
|
|
|
"zod": "^3.24.1"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@3rapp/core": "workspace:*",
|
|
|
|
|
"@antfu/eslint-config": "^3.12.1",
|
|
|
|
|
"@eslint-react/eslint-plugin": "^1.22.1",
|
|
|
|
|
"@types/bcrypt": "^5.0.2",
|
|
|
|
|
"@types/bcryptjs": "^2.4.6",
|
|
|
|
|
"@types/jsonwebtoken": "^9.0.7",
|
|
|
|
|
"@types/lodash": "^4.17.13",
|
|
|
|
|
"@types/micromatch": "^4.0.9",
|
|
|
|
|
"@types/node": "^20.17.10",
|
|
|
|
|
"@types/nodemailer": "^6.4.17",
|
|
|
|
|
"@types/passport": "^1.0.17",
|
|
|
|
|
"@types/passport-jwt": "^4.0.1",
|
|
|
|
|
"@types/passport-local": "^1.0.38",
|
|
|
|
|
"@types/pinyin": "^2.10.2",
|
|
|
|
|
"@types/react": "^19.0.2",
|
|
|
|
|
"@types/react-dom": "^19.0.2",
|
|
|
|
|
"@types/uuid": "^10.0.0",
|
|
|
|
|
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
|
|
|
"@typescript-eslint/parser": "^8.18.2",
|
|
|
|
|
"autoprefixer": "^10.4.20",
|
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
|
"eslint": "^9.17.0",
|
|
|
|
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
|
|
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
|
|
|
"postcss": "^8.4.49",
|
|
|
|
|
"postcss-import": "^16.1.0",
|
|
|
|
|
"postcss-mixins": "^10.0.1",
|
|
|
|
|
"postcss-nested": "^6.2.0",
|
|
|
|
|
"postcss-nesting": "^12.1.5",
|
|
|
|
|
"prisma": "^6.1.0",
|
|
|
|
|
"prisma-extension-bark": "^0.2.2",
|
|
|
|
|
"stylelint": "^16.12.0",
|
|
|
|
|
"stylelint-config-css-modules": "^4.4.0",
|
|
|
|
|
"stylelint-config-recess-order": "^5.1.1",
|
|
|
|
|
"stylelint-config-standard": "^36.0.1",
|
|
|
|
|
"stylelint-prettier": "^5.0.2",
|
|
|
|
|
"tailwindcss": "^3.4.17",
|
|
|
|
|
"tailwindcss-animate": "^1.0.7",
|
|
|
|
|
"ts-node": "^10.9.2",
|
|
|
|
|
"tsconfig-paths": "^4.2.0",
|
|
|
|
|
"typescript": "^5.7.2",
|
|
|
|
|
"utility-types": "^3.11.0"
|
|
|
|
|
},
|
|
|
|
|
"prisma": {
|
|
|
|
|
"schema": "src/database/schema",
|
|
|
|
|
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} -r tsconfig-paths/register src/database/seed/index.ts"
|
|
|
|
|
}
|
2024-09-28 14:58:45 +08:00
|
|
|
|
}
|