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.
- package/README.md +6 -0
- package/dist/commands/add.js +12 -4
- package/dist/commands/add.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/code-inject.js +1 -1
- package/dist/utils/code-inject.js.map +1 -1
- package/dist/utils/detect.d.ts.map +1 -1
- package/dist/utils/detect.js +45 -16
- package/dist/utils/detect.js.map +1 -1
- package/dist/utils/env-editor.d.ts.map +1 -1
- package/dist/utils/env-editor.js +2 -2
- package/dist/utils/env-editor.js.map +1 -1
- package/dist/utils/files.js +1 -1
- package/dist/utils/files.js.map +1 -1
- package/modules/auth/authjs-express/files/lib/auth.ts +40 -0
- package/modules/auth/authjs-express/files/routes/auth.ts +12 -0
- package/modules/auth/authjs-express/module.json +39 -0
- package/modules/auth/authjs-nextjs/files/api/auth/[...nextauth]/route.ts +3 -0
- package/modules/auth/authjs-nextjs/files/lib/auth.ts +43 -0
- package/modules/auth/authjs-nextjs/module.json +38 -0
- package/modules/auth/better-auth-express/files/lib/auth.ts +16 -0
- package/modules/auth/better-auth-express/files/routes/auth.ts +12 -0
- package/modules/auth/better-auth-express/module.json +38 -0
- package/modules/auth/better-auth-nextjs/files/api/auth/[...all]/route.ts +3 -0
- package/modules/auth/better-auth-nextjs/files/lib/auth.ts +18 -0
- package/modules/auth/better-auth-nextjs/module.json +38 -0
- package/modules/auth/better-auth-react/files/lib/auth-client.ts +9 -0
- package/modules/auth/better-auth-react/module.json +26 -0
- package/modules/database/prisma-mongodb/files/lib/db.ts +9 -0
- package/modules/database/prisma-mongodb/files/prisma/schema.prisma +17 -0
- package/modules/database/prisma-mongodb/module.json +36 -0
- package/modules/database/prisma-postgresql/files/lib/db.ts +9 -0
- package/modules/database/prisma-postgresql/files/prisma/schema.prisma +17 -0
- package/modules/database/prisma-postgresql/module.json +36 -0
- package/package.json +3 -3
- package/templates/auth/authjs-express/config.json +20 -0
- package/templates/auth/authjs-express/files/lib/auth.ts +43 -0
- package/templates/auth/authjs-express/files/routes/auth.ts +12 -0
- package/templates/auth/authjs-express/lib/auth.ts +43 -0
- package/templates/auth/authjs-express/module.json +39 -0
- package/templates/auth/authjs-express/routes/auth.ts +12 -0
- package/templates/auth/authjs-nextjs/app/api/auth/[...nextauth]/route.ts +3 -0
- package/templates/auth/authjs-nextjs/config.json +19 -0
- package/templates/auth/authjs-nextjs/files/api/auth/[...nextauth]/route.ts +3 -0
- package/templates/auth/authjs-nextjs/files/lib/auth.ts +45 -0
- package/templates/auth/authjs-nextjs/lib/auth.ts +45 -0
- package/templates/auth/authjs-nextjs/module.json +38 -0
- package/templates/auth/better-auth-express/config.json +18 -0
- package/templates/auth/better-auth-express/src/lib/auth.ts +12 -0
- package/templates/auth/better-auth-express/src/routes/auth.ts +10 -0
- package/templates/auth/better-auth-nextjs/app/api/auth/[...all]/route.ts +4 -0
- package/templates/auth/better-auth-nextjs/config.json +18 -0
- package/templates/auth/better-auth-nextjs/lib/auth.ts +14 -0
- package/templates/auth/better-auth-react/config.json +15 -0
- package/templates/auth/better-auth-react/files/lib/auth-client.ts +9 -0
- package/templates/auth/better-auth-react/lib/auth-client.ts +9 -0
- package/templates/auth/better-auth-react/module.json +26 -0
- package/templates/auth/nextauth/app/api/auth/[...nextauth]/route.ts +3 -0
- package/templates/auth/nextauth/config.json +18 -0
- package/templates/auth/nextauth/lib/auth.ts +31 -0
- package/templates/bases/express-base/.env.example +2 -0
- package/templates/bases/express-base/package.json +23 -0
- package/templates/bases/express-base/src/index.ts +27 -0
- package/templates/bases/express-base/template.json +7 -0
- package/templates/bases/express-base/tsconfig.json +17 -0
- package/templates/bases/nextjs-base/.eslintrc.json +3 -0
- package/templates/bases/nextjs-base/app/globals.css +3 -0
- package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/app/layout.tsx +3 -6
- package/templates/bases/nextjs-base/app/page.tsx +8 -0
- package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/next.config.ts +1 -3
- package/templates/bases/nextjs-base/package.json +24 -0
- package/templates/bases/nextjs-base/template.json +7 -0
- package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/tsconfig.json +1 -6
- package/templates/databases/prisma-mongodb/config.json +21 -0
- package/templates/{next-prisma-postgres-shadcn → databases/prisma-mongodb}/lib/db.ts +2 -3
- package/templates/databases/prisma-mongodb/prisma/schema.prisma +16 -0
- package/templates/databases/prisma-postgresql/config.json +22 -0
- package/templates/databases/prisma-postgresql/lib/db.ts +13 -0
- package/templates/databases/prisma-postgresql/prisma/schema.prisma +16 -0
- package/templates/next-prisma-postgres-shadcn/.env.example +0 -5
- package/templates/next-prisma-postgres-shadcn/.eslintrc.json +0 -7
- package/templates/next-prisma-postgres-shadcn/.prettierrc +0 -8
- package/templates/next-prisma-postgres-shadcn/README.md +0 -85
- package/templates/next-prisma-postgres-shadcn/app/api/health/route.ts +0 -25
- package/templates/next-prisma-postgres-shadcn/app/globals.css +0 -1
- package/templates/next-prisma-postgres-shadcn/app/page.tsx +0 -29
- package/templates/next-prisma-postgres-shadcn/lib/env.ts +0 -15
- package/templates/next-prisma-postgres-shadcn/package.json +0 -32
- package/templates/next-prisma-postgres-shadcn/prisma/schema.prisma +0 -20
- package/templates/next-prisma-postgres-shadcn/public/.gitkeep +0 -1
- 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
|
-
}
|