stackkit-cli 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/stackkit.js +10 -1
- package/dist/commands/add.js +138 -1
- package/dist/types/index.d.ts +14 -2
- package/modules/auth/better-auth/files/lib/auth.ts +13 -0
- package/modules/auth/better-auth/files/schemas/prisma-schema.prisma +63 -0
- package/modules/auth/better-auth/module.json +54 -0
- package/modules/auth/clerk/module.json +115 -0
- package/modules/database/mongoose-mongodb/files/lib/db.ts +44 -6
- package/modules/database/mongoose-mongodb/files/models/User.ts +39 -0
- package/modules/database/mongoose-mongodb/module.json +27 -12
- package/modules/database/prisma/files/lib/prisma.ts +6 -0
- package/modules/database/prisma/files/prisma/schema.prisma +8 -0
- package/modules/database/prisma/files/prisma.config.ts +12 -0
- package/modules/database/prisma/module.json +140 -0
- package/package.json +1 -1
- package/templates/express/.env.example +2 -10
- package/templates/express/package.json +12 -18
- package/templates/express/src/app.ts +9 -29
- package/templates/express/src/config/env.ts +3 -14
- package/templates/express/src/features/auth/auth.controller.ts +48 -0
- package/templates/express/src/features/auth/auth.route.ts +10 -0
- package/templates/express/src/features/auth/auth.service.ts +21 -0
- package/templates/express/src/middlewares/error.middleware.ts +2 -2
- package/templates/express/src/server.ts +1 -1
- package/templates/express/template.json +1 -5
- package/templates/express/tsconfig.json +0 -1
- package/modules/auth/better-auth-express/adapters/mongoose-mongodb.ts +0 -13
- package/modules/auth/better-auth-express/adapters/prisma-mongodb.ts +0 -15
- package/modules/auth/better-auth-express/adapters/prisma-postgresql.ts +0 -15
- package/modules/auth/better-auth-express/files/lib/auth.ts +0 -16
- package/modules/auth/better-auth-express/files/routes/auth.ts +0 -12
- package/modules/auth/better-auth-express/files/schemas/prisma-mongodb-schema.prisma +0 -72
- package/modules/auth/better-auth-express/files/schemas/prisma-postgresql-schema.prisma +0 -72
- package/modules/auth/better-auth-express/module.json +0 -61
- package/modules/auth/better-auth-nextjs/adapters/mongoose-mongodb.ts +0 -24
- package/modules/auth/better-auth-nextjs/adapters/prisma-mongodb.ts +0 -26
- package/modules/auth/better-auth-nextjs/adapters/prisma-postgresql.ts +0 -26
- package/modules/auth/better-auth-nextjs/files/lib/auth.ts +0 -26
- package/modules/auth/better-auth-nextjs/files/schemas/prisma-mongodb-schema.prisma +0 -72
- package/modules/auth/better-auth-nextjs/files/schemas/prisma-postgresql-schema.prisma +0 -72
- package/modules/auth/better-auth-nextjs/module.json +0 -62
- package/modules/auth/better-auth-react/files/lib/auth-client.ts +0 -9
- package/modules/auth/better-auth-react/module.json +0 -28
- package/modules/auth/clerk-express/module.json +0 -34
- package/modules/auth/clerk-nextjs/module.json +0 -64
- package/modules/auth/clerk-react/module.json +0 -28
- package/modules/database/prisma-mongodb/files/lib/db.ts +0 -9
- package/modules/database/prisma-mongodb/files/prisma/schema.prisma +0 -17
- package/modules/database/prisma-mongodb/module.json +0 -60
- package/modules/database/prisma-postgresql/files/lib/db.ts +0 -9
- package/modules/database/prisma-postgresql/files/prisma/schema.prisma +0 -17
- package/modules/database/prisma-postgresql/module.json +0 -60
- /package/modules/auth/{better-auth-nextjs → better-auth}/files/api/auth/[...all]/route.ts +0 -0
- /package/modules/auth/{clerk-express/files/lib → clerk/files/express}/auth.ts +0 -0
- /package/modules/auth/{clerk-nextjs/files/lib → clerk/files/nextjs}/auth-provider.tsx +0 -0
- /package/modules/auth/{clerk-nextjs/files → clerk/files/nextjs}/middleware.ts +0 -0
- /package/modules/auth/{clerk-react/files/lib → clerk/files/react}/auth-provider.tsx +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "prisma-postgresql",
|
|
3
|
-
"displayName": "Prisma + PostgreSQL",
|
|
4
|
-
"description": "Prisma ORM with PostgreSQL database",
|
|
5
|
-
"category": "database",
|
|
6
|
-
"provider": "prisma",
|
|
7
|
-
"database": "postgresql",
|
|
8
|
-
"supportedFrameworks": ["nextjs", "express"],
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@prisma/client": "^6.1.0"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"prisma": "^6.1.0"
|
|
14
|
-
},
|
|
15
|
-
"envVars": [
|
|
16
|
-
{
|
|
17
|
-
"key": "DATABASE_URL",
|
|
18
|
-
"value": "postgresql://user:password@localhost:5432/mydb?schema=public",
|
|
19
|
-
"description": "PostgreSQL database connection URL",
|
|
20
|
-
"required": true
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"frameworkPatches": {
|
|
24
|
-
"express": {
|
|
25
|
-
"tsconfig.json": {
|
|
26
|
-
"merge": {
|
|
27
|
-
"compilerOptions": {
|
|
28
|
-
"paths": {
|
|
29
|
-
"@/*": ["./src/*"]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"include": ["src/**/*"],
|
|
33
|
-
"exclude": ["node_modules", "dist", "prisma/migrations"]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"nextjs": {
|
|
38
|
-
"tsconfig.json": {
|
|
39
|
-
"merge": {
|
|
40
|
-
"exclude": ["node_modules", ".next", "out", "prisma/migrations"]
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"patches": [
|
|
46
|
-
{
|
|
47
|
-
"type": "create-file",
|
|
48
|
-
"description": "Create Prisma schema",
|
|
49
|
-
"source": "files/prisma/schema.prisma",
|
|
50
|
-
"destination": "prisma/schema.prisma"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"type": "create-file",
|
|
54
|
-
"description": "Create Prisma client singleton",
|
|
55
|
-
"source": "files/lib/db.ts",
|
|
56
|
-
"destination": "{{lib}}/db.ts"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"postInstall": ["npx prisma generate"]
|
|
60
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|