create-stackkit-app 0.3.1 → 0.4.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.
- package/README.md +12 -94
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/lib/create-project.d.ts +0 -1
- package/dist/lib/create-project.js +103 -66
- package/dist/lib/template-composer.d.ts +0 -1
- package/dist/lib/template-composer.js +0 -2
- package/{templates → modules}/auth/authjs-express/files/lib/auth.ts +0 -3
- package/{templates → modules}/auth/authjs-nextjs/files/lib/auth.ts +0 -2
- package/modules/auth/better-auth-express/files/lib/auth.ts +16 -0
- package/{templates/auth/authjs-express → modules/auth/better-auth-express/files}/routes/auth.ts +3 -3
- package/modules/auth/better-auth-express/module.json +38 -0
- package/{templates/auth/better-auth-nextjs/app → modules/auth/better-auth-nextjs/files}/api/auth/[...all]/route.ts +1 -0
- package/modules/auth/better-auth-nextjs/files/lib/auth.ts +26 -0
- package/modules/auth/better-auth-nextjs/module.json +41 -0
- package/modules/auth/clerk-express/files/lib/auth.ts +7 -0
- package/modules/auth/clerk-express/module.json +19 -0
- package/modules/auth/clerk-nextjs/files/lib/auth-provider.tsx +5 -0
- package/modules/auth/clerk-nextjs/files/middleware.ts +9 -0
- package/modules/auth/clerk-nextjs/module.json +27 -0
- package/modules/auth/clerk-react/files/lib/auth-provider.tsx +15 -0
- package/modules/auth/clerk-react/module.json +18 -0
- package/modules/auth/nextauth/files/app-router/api/auth/[...nextauth]/route.ts +6 -0
- package/modules/auth/nextauth/files/lib/auth.ts +82 -0
- package/modules/auth/nextauth/files/pages-router/api/auth/[...nextauth].ts +4 -0
- package/modules/auth/nextauth/module.json +50 -0
- package/modules/database/drizzle-postgresql/files/drizzle.config.ts +10 -0
- package/modules/database/drizzle-postgresql/files/lib/db.ts +7 -0
- package/modules/database/drizzle-postgresql/files/lib/schema.ts +8 -0
- package/modules/database/drizzle-postgresql/module.json +34 -0
- package/modules/database/mongoose-mongodb/files/lib/db.ts +40 -0
- package/modules/database/mongoose-mongodb/module.json +17 -0
- package/{templates/databases/prisma-postgresql → modules/database/prisma-mongodb/files}/lib/db.ts +2 -6
- package/{templates/databases/prisma-mongodb → modules/database/prisma-mongodb/files}/prisma/schema.prisma +1 -0
- package/modules/database/prisma-mongodb/module.json +36 -0
- package/{templates/databases/prisma-mongodb → modules/database/prisma-postgresql/files}/lib/db.ts +2 -6
- package/{templates/databases/prisma-postgresql → modules/database/prisma-postgresql/files}/prisma/schema.prisma +1 -0
- package/modules/database/prisma-postgresql/module.json +36 -0
- package/package.json +8 -6
- package/templates/bases/nextjs-base/README.md +36 -0
- package/templates/bases/nextjs-base/app/favicon.ico +0 -0
- package/templates/bases/nextjs-base/app/globals.css +26 -3
- package/templates/bases/nextjs-base/app/layout.tsx +21 -6
- package/templates/bases/nextjs-base/app/page.tsx +61 -4
- package/templates/bases/nextjs-base/eslint.config.mjs +18 -0
- package/templates/bases/nextjs-base/next.config.ts +4 -2
- package/templates/bases/nextjs-base/package-lock.json +6538 -0
- package/templates/bases/nextjs-base/package.json +12 -10
- package/templates/bases/nextjs-base/postcss.config.mjs +7 -0
- package/templates/bases/nextjs-base/public/file.svg +1 -0
- package/templates/bases/nextjs-base/public/globe.svg +1 -0
- package/templates/bases/nextjs-base/public/next.svg +1 -0
- package/templates/bases/nextjs-base/public/vercel.svg +1 -0
- package/templates/bases/nextjs-base/public/window.svg +1 -0
- package/templates/bases/nextjs-base/template.json +12 -1
- package/templates/bases/nextjs-base/tsconfig.json +9 -2
- package/templates/bases/react-vite-base/index.html +13 -0
- package/templates/bases/react-vite-base/package.json +27 -0
- package/templates/bases/react-vite-base/src/App.css +14 -0
- package/templates/bases/react-vite-base/src/App.tsx +23 -0
- package/templates/bases/react-vite-base/src/index.css +68 -0
- package/templates/bases/react-vite-base/src/main.tsx +10 -0
- package/templates/bases/react-vite-base/src/vite-env.d.ts +1 -0
- package/templates/bases/react-vite-base/template.json +5 -0
- package/templates/bases/react-vite-base/tsconfig.json +21 -0
- package/templates/bases/react-vite-base/vite.config.ts +7 -0
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/create-project.d.ts.map +0 -1
- package/dist/lib/create-project.js.map +0 -1
- package/dist/lib/template-composer.d.ts.map +0 -1
- package/dist/lib/template-composer.js.map +0 -1
- package/templates/auth/authjs-express/config.json +0 -20
- package/templates/auth/authjs-express/lib/auth.ts +0 -43
- package/templates/auth/authjs-nextjs/config.json +0 -19
- package/templates/auth/authjs-nextjs/files/api/auth/[...nextauth]/route.ts +0 -3
- package/templates/auth/authjs-nextjs/lib/auth.ts +0 -45
- package/templates/auth/better-auth-express/config.json +0 -18
- package/templates/auth/better-auth-express/src/lib/auth.ts +0 -12
- package/templates/auth/better-auth-express/src/routes/auth.ts +0 -10
- package/templates/auth/better-auth-nextjs/config.json +0 -18
- package/templates/auth/better-auth-nextjs/lib/auth.ts +0 -14
- package/templates/auth/better-auth-react/config.json +0 -15
- package/templates/auth/better-auth-react/lib/auth-client.ts +0 -9
- package/templates/auth/nextauth/app/api/auth/[...nextauth]/route.ts +0 -3
- package/templates/auth/nextauth/config.json +0 -18
- package/templates/auth/nextauth/lib/auth.ts +0 -31
- package/templates/bases/nextjs-base/.eslintrc.json +0 -3
- package/templates/databases/prisma-mongodb/config.json +0 -21
- package/templates/databases/prisma-postgresql/config.json +0 -22
- package/{templates → modules}/auth/authjs-express/files/routes/auth.ts +1 -1
- /package/{templates → modules}/auth/authjs-express/module.json +0 -0
- /package/{templates/auth/authjs-nextjs/app → modules/auth/authjs-nextjs/files}/api/auth/[...nextauth]/route.ts +0 -0
- /package/{templates → modules}/auth/authjs-nextjs/module.json +0 -0
- /package/{templates → modules}/auth/better-auth-react/files/lib/auth-client.ts +0 -0
- /package/{templates → modules}/auth/better-auth-react/module.json +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nextauth",
|
|
3
|
-
"displayName": "Auth.js (NextAuth)",
|
|
4
|
-
"auth": "nextauth",
|
|
5
|
-
"compatibleWith": {
|
|
6
|
-
"frameworks": ["nextjs"],
|
|
7
|
-
"databases": ["prisma-postgresql", "prisma-mongodb"]
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"next-auth": "^5.0.0-beta.25",
|
|
11
|
-
"@auth/prisma-adapter": "^2.7.4"
|
|
12
|
-
},
|
|
13
|
-
"env": {
|
|
14
|
-
"AUTH_SECRET": "your-secret-here",
|
|
15
|
-
"NEXTAUTH_URL": "http://localhost:3000"
|
|
16
|
-
},
|
|
17
|
-
"files": ["app/api/auth/[...nextauth]/route.ts", "lib/auth.ts", "middleware.ts"]
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { prisma } from '@/lib/db';
|
|
2
|
-
import { PrismaAdapter } from '@auth/prisma-adapter';
|
|
3
|
-
import NextAuth from 'next-auth';
|
|
4
|
-
import CredentialsProvider from 'next-auth/providers/credentials';
|
|
5
|
-
|
|
6
|
-
export const { handlers, auth, signIn, signOut } = NextAuth({
|
|
7
|
-
adapter: PrismaAdapter(prisma),
|
|
8
|
-
session: {
|
|
9
|
-
strategy: 'jwt',
|
|
10
|
-
},
|
|
11
|
-
providers: [
|
|
12
|
-
CredentialsProvider({
|
|
13
|
-
name: 'Credentials',
|
|
14
|
-
credentials: {
|
|
15
|
-
email: { label: 'Email', type: 'email' },
|
|
16
|
-
password: { label: 'Password', type: 'password' },
|
|
17
|
-
},
|
|
18
|
-
async authorize(credentials) {
|
|
19
|
-
// Add your authentication logic here
|
|
20
|
-
if (!credentials?.email || !credentials?.password) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
// Replace with your actual user lookup
|
|
24
|
-
return { id: '1', email: credentials.email as string };
|
|
25
|
-
},
|
|
26
|
-
}),
|
|
27
|
-
],
|
|
28
|
-
pages: {
|
|
29
|
-
signIn: '/auth/signin',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "prisma-mongodb",
|
|
3
|
-
"displayName": "Prisma + MongoDB",
|
|
4
|
-
"database": "prisma-mongodb",
|
|
5
|
-
"compatibleWith": ["nextjs", "express"],
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"@prisma/client": "^6.2.0"
|
|
8
|
-
},
|
|
9
|
-
"devDependencies": {
|
|
10
|
-
"prisma": "^6.2.0"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"db:generate": "prisma generate",
|
|
14
|
-
"db:push": "prisma db push",
|
|
15
|
-
"db:studio": "prisma studio"
|
|
16
|
-
},
|
|
17
|
-
"env": {
|
|
18
|
-
"DATABASE_URL": "mongodb://localhost:27017/mydb"
|
|
19
|
-
},
|
|
20
|
-
"files": ["prisma/schema.prisma", "lib/db.ts"]
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "prisma-postgresql",
|
|
3
|
-
"displayName": "Prisma + PostgreSQL",
|
|
4
|
-
"database": "prisma-postgresql",
|
|
5
|
-
"compatibleWith": ["nextjs", "express"],
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"@prisma/client": "^6.2.0"
|
|
8
|
-
},
|
|
9
|
-
"devDependencies": {
|
|
10
|
-
"prisma": "^6.2.0"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"db:generate": "prisma generate",
|
|
14
|
-
"db:push": "prisma db push",
|
|
15
|
-
"db:migrate": "prisma migrate dev",
|
|
16
|
-
"db:studio": "prisma studio"
|
|
17
|
-
},
|
|
18
|
-
"env": {
|
|
19
|
-
"DATABASE_URL": "postgresql://user:password@localhost:5432/mydb"
|
|
20
|
-
},
|
|
21
|
-
"files": ["prisma/schema.prisma", "lib/db.ts"]
|
|
22
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|