create-stackkit-app 0.2.0 → 0.3.0

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 (49) hide show
  1. package/README.md +46 -31
  2. package/dist/lib/create-project.d.ts.map +1 -1
  3. package/dist/lib/create-project.js +140 -53
  4. package/dist/lib/create-project.js.map +1 -1
  5. package/dist/lib/template-composer.d.ts +17 -0
  6. package/dist/lib/template-composer.d.ts.map +1 -0
  7. package/dist/lib/template-composer.js +199 -0
  8. package/dist/lib/template-composer.js.map +1 -0
  9. package/package.json +4 -3
  10. package/templates/auth/better-auth-express/config.json +18 -0
  11. package/templates/auth/better-auth-express/src/lib/auth.ts +12 -0
  12. package/templates/auth/better-auth-express/src/routes/auth.ts +10 -0
  13. package/templates/auth/better-auth-nextjs/app/api/auth/[...all]/route.ts +4 -0
  14. package/templates/auth/better-auth-nextjs/config.json +18 -0
  15. package/templates/auth/better-auth-nextjs/lib/auth.ts +14 -0
  16. package/templates/auth/nextauth/app/api/auth/[...nextauth]/route.ts +3 -0
  17. package/templates/auth/nextauth/config.json +18 -0
  18. package/templates/auth/nextauth/lib/auth.ts +31 -0
  19. package/templates/bases/express-base/.env.example +2 -0
  20. package/templates/bases/express-base/package.json +23 -0
  21. package/templates/bases/express-base/src/index.ts +27 -0
  22. package/templates/bases/express-base/template.json +7 -0
  23. package/templates/bases/express-base/tsconfig.json +17 -0
  24. package/templates/bases/nextjs-base/.eslintrc.json +3 -0
  25. package/templates/bases/nextjs-base/app/globals.css +3 -0
  26. package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/app/layout.tsx +3 -6
  27. package/templates/bases/nextjs-base/app/page.tsx +8 -0
  28. package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/next.config.ts +1 -3
  29. package/templates/bases/nextjs-base/package.json +24 -0
  30. package/templates/bases/nextjs-base/template.json +7 -0
  31. package/templates/{next-prisma-postgres-shadcn → bases/nextjs-base}/tsconfig.json +1 -6
  32. package/templates/databases/prisma-mongodb/config.json +21 -0
  33. package/templates/{next-prisma-postgres-shadcn → databases/prisma-mongodb}/lib/db.ts +2 -3
  34. package/templates/databases/prisma-mongodb/prisma/schema.prisma +16 -0
  35. package/templates/databases/prisma-postgresql/config.json +22 -0
  36. package/templates/databases/prisma-postgresql/lib/db.ts +13 -0
  37. package/templates/databases/prisma-postgresql/prisma/schema.prisma +16 -0
  38. package/templates/next-prisma-postgres-shadcn/.env.example +0 -5
  39. package/templates/next-prisma-postgres-shadcn/.eslintrc.json +0 -7
  40. package/templates/next-prisma-postgres-shadcn/.prettierrc +0 -8
  41. package/templates/next-prisma-postgres-shadcn/README.md +0 -85
  42. package/templates/next-prisma-postgres-shadcn/app/api/health/route.ts +0 -25
  43. package/templates/next-prisma-postgres-shadcn/app/globals.css +0 -1
  44. package/templates/next-prisma-postgres-shadcn/app/page.tsx +0 -29
  45. package/templates/next-prisma-postgres-shadcn/lib/env.ts +0 -15
  46. package/templates/next-prisma-postgres-shadcn/package.json +0 -32
  47. package/templates/next-prisma-postgres-shadcn/prisma/schema.prisma +0 -20
  48. package/templates/next-prisma-postgres-shadcn/public/.gitkeep +0 -1
  49. package/templates/next-prisma-postgres-shadcn/template.json +0 -18
@@ -1,15 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- const envSchema = z.object({
4
- NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),
5
- DATABASE_URL: z.string().url(),
6
- });
7
-
8
- const parsedEnv = envSchema.safeParse(process.env);
9
-
10
- if (!parsedEnv.success) {
11
- console.error('❌ Invalid environment variables:', parsedEnv.error.format());
12
- throw new Error('Invalid environment variables');
13
- }
14
-
15
- export const env = parsedEnv.data;
@@ -1,32 +0,0 @@
1
- {
2
- "name": "my-app",
3
- "version": "0.1.0",
4
- "private": true,
5
- "scripts": {
6
- "dev": "next dev",
7
- "build": "next build",
8
- "start": "next start",
9
- "lint": "eslint . --ext .ts,.tsx",
10
- "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
11
- "postinstall": "prisma generate"
12
- },
13
- "dependencies": {
14
- "@prisma/client": "^5.8.0",
15
- "next": "16.1.1",
16
- "react": "19.2.3",
17
- "react-dom": "19.2.3",
18
- "zod": "^3.22.4"
19
- },
20
- "devDependencies": {
21
- "@tailwindcss/postcss": "^4",
22
- "@types/node": "^20",
23
- "@types/react": "^19",
24
- "@types/react-dom": "^19",
25
- "eslint": "^9",
26
- "eslint-config-next": "16.1.1",
27
- "prettier": "^3.2.4",
28
- "prisma": "^5.8.0",
29
- "tailwindcss": "^4",
30
- "typescript": "^5"
31
- }
32
- }
@@ -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
- }