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.
Files changed (57) hide show
  1. package/bin/stackkit.js +10 -1
  2. package/dist/commands/add.js +138 -1
  3. package/dist/types/index.d.ts +14 -2
  4. package/modules/auth/better-auth/files/lib/auth.ts +13 -0
  5. package/modules/auth/better-auth/files/schemas/prisma-schema.prisma +63 -0
  6. package/modules/auth/better-auth/module.json +54 -0
  7. package/modules/auth/clerk/module.json +115 -0
  8. package/modules/database/mongoose-mongodb/files/lib/db.ts +44 -6
  9. package/modules/database/mongoose-mongodb/files/models/User.ts +39 -0
  10. package/modules/database/mongoose-mongodb/module.json +27 -12
  11. package/modules/database/prisma/files/lib/prisma.ts +6 -0
  12. package/modules/database/prisma/files/prisma/schema.prisma +8 -0
  13. package/modules/database/prisma/files/prisma.config.ts +12 -0
  14. package/modules/database/prisma/module.json +140 -0
  15. package/package.json +1 -1
  16. package/templates/express/.env.example +2 -10
  17. package/templates/express/package.json +12 -18
  18. package/templates/express/src/app.ts +9 -29
  19. package/templates/express/src/config/env.ts +3 -14
  20. package/templates/express/src/features/auth/auth.controller.ts +48 -0
  21. package/templates/express/src/features/auth/auth.route.ts +10 -0
  22. package/templates/express/src/features/auth/auth.service.ts +21 -0
  23. package/templates/express/src/middlewares/error.middleware.ts +2 -2
  24. package/templates/express/src/server.ts +1 -1
  25. package/templates/express/template.json +1 -5
  26. package/templates/express/tsconfig.json +0 -1
  27. package/modules/auth/better-auth-express/adapters/mongoose-mongodb.ts +0 -13
  28. package/modules/auth/better-auth-express/adapters/prisma-mongodb.ts +0 -15
  29. package/modules/auth/better-auth-express/adapters/prisma-postgresql.ts +0 -15
  30. package/modules/auth/better-auth-express/files/lib/auth.ts +0 -16
  31. package/modules/auth/better-auth-express/files/routes/auth.ts +0 -12
  32. package/modules/auth/better-auth-express/files/schemas/prisma-mongodb-schema.prisma +0 -72
  33. package/modules/auth/better-auth-express/files/schemas/prisma-postgresql-schema.prisma +0 -72
  34. package/modules/auth/better-auth-express/module.json +0 -61
  35. package/modules/auth/better-auth-nextjs/adapters/mongoose-mongodb.ts +0 -24
  36. package/modules/auth/better-auth-nextjs/adapters/prisma-mongodb.ts +0 -26
  37. package/modules/auth/better-auth-nextjs/adapters/prisma-postgresql.ts +0 -26
  38. package/modules/auth/better-auth-nextjs/files/lib/auth.ts +0 -26
  39. package/modules/auth/better-auth-nextjs/files/schemas/prisma-mongodb-schema.prisma +0 -72
  40. package/modules/auth/better-auth-nextjs/files/schemas/prisma-postgresql-schema.prisma +0 -72
  41. package/modules/auth/better-auth-nextjs/module.json +0 -62
  42. package/modules/auth/better-auth-react/files/lib/auth-client.ts +0 -9
  43. package/modules/auth/better-auth-react/module.json +0 -28
  44. package/modules/auth/clerk-express/module.json +0 -34
  45. package/modules/auth/clerk-nextjs/module.json +0 -64
  46. package/modules/auth/clerk-react/module.json +0 -28
  47. package/modules/database/prisma-mongodb/files/lib/db.ts +0 -9
  48. package/modules/database/prisma-mongodb/files/prisma/schema.prisma +0 -17
  49. package/modules/database/prisma-mongodb/module.json +0 -60
  50. package/modules/database/prisma-postgresql/files/lib/db.ts +0 -9
  51. package/modules/database/prisma-postgresql/files/prisma/schema.prisma +0 -17
  52. package/modules/database/prisma-postgresql/module.json +0 -60
  53. /package/modules/auth/{better-auth-nextjs → better-auth}/files/api/auth/[...all]/route.ts +0 -0
  54. /package/modules/auth/{clerk-express/files/lib → clerk/files/express}/auth.ts +0 -0
  55. /package/modules/auth/{clerk-nextjs/files/lib → clerk/files/nextjs}/auth-provider.tsx +0 -0
  56. /package/modules/auth/{clerk-nextjs/files → clerk/files/nextjs}/middleware.ts +0 -0
  57. /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
- }