stackkit-cli 0.2.0 → 0.3.1

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 (94) hide show
  1. package/README.md +6 -0
  2. package/dist/commands/add.js +12 -4
  3. package/dist/commands/add.js.map +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/types/index.d.ts +2 -1
  7. package/dist/types/index.d.ts.map +1 -1
  8. package/dist/utils/code-inject.js +1 -1
  9. package/dist/utils/code-inject.js.map +1 -1
  10. package/dist/utils/detect.d.ts.map +1 -1
  11. package/dist/utils/detect.js +45 -16
  12. package/dist/utils/detect.js.map +1 -1
  13. package/dist/utils/env-editor.d.ts.map +1 -1
  14. package/dist/utils/env-editor.js +2 -2
  15. package/dist/utils/env-editor.js.map +1 -1
  16. package/dist/utils/files.js +1 -1
  17. package/dist/utils/files.js.map +1 -1
  18. package/modules/auth/authjs-express/files/lib/auth.ts +40 -0
  19. package/modules/auth/authjs-express/files/routes/auth.ts +12 -0
  20. package/modules/auth/authjs-express/module.json +39 -0
  21. package/modules/auth/authjs-nextjs/files/api/auth/[...nextauth]/route.ts +3 -0
  22. package/modules/auth/authjs-nextjs/files/lib/auth.ts +43 -0
  23. package/modules/auth/authjs-nextjs/module.json +38 -0
  24. package/modules/auth/better-auth-express/files/lib/auth.ts +16 -0
  25. package/modules/auth/better-auth-express/files/routes/auth.ts +12 -0
  26. package/modules/auth/better-auth-express/module.json +38 -0
  27. package/modules/auth/better-auth-nextjs/files/api/auth/[...all]/route.ts +3 -0
  28. package/modules/auth/better-auth-nextjs/files/lib/auth.ts +18 -0
  29. package/modules/auth/better-auth-nextjs/module.json +38 -0
  30. package/modules/auth/better-auth-react/files/lib/auth-client.ts +9 -0
  31. package/modules/auth/better-auth-react/module.json +26 -0
  32. package/modules/database/prisma-mongodb/files/lib/db.ts +9 -0
  33. package/modules/database/prisma-mongodb/files/prisma/schema.prisma +17 -0
  34. package/modules/database/prisma-mongodb/module.json +36 -0
  35. package/modules/database/prisma-postgresql/files/lib/db.ts +9 -0
  36. package/modules/database/prisma-postgresql/files/prisma/schema.prisma +17 -0
  37. package/modules/database/prisma-postgresql/module.json +36 -0
  38. package/package.json +3 -3
  39. package/templates/auth/authjs-express/config.json +20 -0
  40. package/templates/auth/authjs-express/files/lib/auth.ts +43 -0
  41. package/templates/auth/authjs-express/files/routes/auth.ts +12 -0
  42. package/templates/auth/authjs-express/lib/auth.ts +43 -0
  43. package/templates/auth/authjs-express/module.json +39 -0
  44. package/templates/auth/authjs-express/routes/auth.ts +12 -0
  45. package/templates/auth/authjs-nextjs/app/api/auth/[...nextauth]/route.ts +3 -0
  46. package/templates/auth/authjs-nextjs/config.json +19 -0
  47. package/templates/auth/authjs-nextjs/files/api/auth/[...nextauth]/route.ts +3 -0
  48. package/templates/auth/authjs-nextjs/files/lib/auth.ts +45 -0
  49. package/templates/auth/authjs-nextjs/lib/auth.ts +45 -0
  50. package/templates/auth/authjs-nextjs/module.json +38 -0
  51. package/templates/auth/better-auth-express/config.json +18 -0
  52. package/templates/auth/better-auth-express/src/lib/auth.ts +12 -0
  53. package/templates/auth/better-auth-express/src/routes/auth.ts +10 -0
  54. package/templates/auth/better-auth-nextjs/app/api/auth/[...all]/route.ts +4 -0
  55. package/templates/auth/better-auth-nextjs/config.json +18 -0
  56. package/templates/auth/better-auth-nextjs/lib/auth.ts +14 -0
  57. package/templates/auth/better-auth-react/config.json +15 -0
  58. package/templates/auth/better-auth-react/files/lib/auth-client.ts +9 -0
  59. package/templates/auth/better-auth-react/lib/auth-client.ts +9 -0
  60. package/templates/auth/better-auth-react/module.json +26 -0
  61. package/templates/auth/nextauth/app/api/auth/[...nextauth]/route.ts +3 -0
  62. package/templates/auth/nextauth/config.json +18 -0
  63. package/templates/auth/nextauth/lib/auth.ts +31 -0
  64. package/templates/bases/express-base/.env.example +2 -0
  65. package/templates/bases/express-base/package.json +23 -0
  66. package/templates/bases/express-base/src/index.ts +27 -0
  67. package/templates/bases/express-base/template.json +7 -0
  68. package/templates/bases/express-base/tsconfig.json +17 -0
  69. package/templates/bases/nextjs-base/.eslintrc.json +3 -0
  70. package/templates/bases/nextjs-base/app/globals.css +3 -0
  71. package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/app/layout.tsx +3 -6
  72. package/templates/bases/nextjs-base/app/page.tsx +8 -0
  73. package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/next.config.ts +1 -3
  74. package/templates/bases/nextjs-base/package.json +24 -0
  75. package/templates/bases/nextjs-base/template.json +7 -0
  76. package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/tsconfig.json +1 -6
  77. package/templates/databases/prisma-mongodb/config.json +21 -0
  78. package/templates/{next-prisma-postgres-shadcn → databases/prisma-mongodb}/lib/db.ts +2 -3
  79. package/templates/databases/prisma-mongodb/prisma/schema.prisma +16 -0
  80. package/templates/databases/prisma-postgresql/config.json +22 -0
  81. package/templates/databases/prisma-postgresql/lib/db.ts +13 -0
  82. package/templates/databases/prisma-postgresql/prisma/schema.prisma +16 -0
  83. package/templates/next-prisma-postgres-shadcn/.env.example +0 -5
  84. package/templates/next-prisma-postgres-shadcn/.eslintrc.json +0 -7
  85. package/templates/next-prisma-postgres-shadcn/.prettierrc +0 -8
  86. package/templates/next-prisma-postgres-shadcn/README.md +0 -85
  87. package/templates/next-prisma-postgres-shadcn/app/api/health/route.ts +0 -25
  88. package/templates/next-prisma-postgres-shadcn/app/globals.css +0 -1
  89. package/templates/next-prisma-postgres-shadcn/app/page.tsx +0 -29
  90. package/templates/next-prisma-postgres-shadcn/lib/env.ts +0 -15
  91. package/templates/next-prisma-postgres-shadcn/package.json +0 -32
  92. package/templates/next-prisma-postgres-shadcn/prisma/schema.prisma +0 -20
  93. package/templates/next-prisma-postgres-shadcn/public/.gitkeep +0 -1
  94. package/templates/next-prisma-postgres-shadcn/template.json +0 -18
@@ -1,20 +0,0 @@
1
- // This is your Prisma schema file
2
- // Learn more about it in the docs: https://pris.ly/d/prisma-schema
3
-
4
- generator client {
5
- provider = "prisma-client-js"
6
- }
7
-
8
- datasource db {
9
- provider = "postgresql"
10
- url = env("DATABASE_URL")
11
- }
12
-
13
- // Example model - replace with your own
14
- model User {
15
- id String @id @default(cuid())
16
- email String @unique
17
- name String?
18
- createdAt DateTime @default(now())
19
- updatedAt DateTime @updatedAt
20
- }
@@ -1 +0,0 @@
1
- # This file is used to keep the public directory in git
@@ -1,18 +0,0 @@
1
- {
2
- "name": "next-prisma-postgres-shadcn",
3
- "displayName": "Next.js + Prisma + PostgreSQL + shadcn/ui",
4
- "description": "Next.js 15 App Router, Prisma, PostgreSQL, shadcn/ui, TypeScript",
5
- "tags": ["nextjs", "prisma", "postgresql", "shadcn", "typescript"],
6
- "defaultPackageManager": "pnpm",
7
- "features": [
8
- "Next.js 15 App Router",
9
- "TypeScript",
10
- "Prisma ORM",
11
- "PostgreSQL",
12
- "shadcn/ui components",
13
- "Tailwind CSS",
14
- "Environment validation (Zod)",
15
- "ESLint + Prettier",
16
- "Health check API route"
17
- ]
18
- }