create-stackkit-app 0.3.0 → 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.
Files changed (88) hide show
  1. package/README.md +12 -94
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.js +0 -1
  4. package/dist/lib/create-project.d.ts +0 -1
  5. package/dist/lib/create-project.js +124 -67
  6. package/dist/lib/template-composer.d.ts +0 -1
  7. package/dist/lib/template-composer.js +0 -2
  8. package/modules/auth/authjs-express/files/lib/auth.ts +40 -0
  9. package/modules/auth/authjs-express/files/routes/auth.ts +12 -0
  10. package/modules/auth/authjs-express/module.json +39 -0
  11. package/modules/auth/authjs-nextjs/files/lib/auth.ts +43 -0
  12. package/modules/auth/authjs-nextjs/module.json +38 -0
  13. package/modules/auth/better-auth-express/files/lib/auth.ts +16 -0
  14. package/modules/auth/better-auth-express/files/routes/auth.ts +12 -0
  15. package/modules/auth/better-auth-express/module.json +38 -0
  16. package/{templates/auth/better-auth-nextjs/app → modules/auth/better-auth-nextjs/files}/api/auth/[...all]/route.ts +1 -0
  17. package/modules/auth/better-auth-nextjs/files/lib/auth.ts +26 -0
  18. package/modules/auth/better-auth-nextjs/module.json +41 -0
  19. package/modules/auth/better-auth-react/files/lib/auth-client.ts +9 -0
  20. package/modules/auth/better-auth-react/module.json +26 -0
  21. package/modules/auth/clerk-express/files/lib/auth.ts +7 -0
  22. package/modules/auth/clerk-express/module.json +19 -0
  23. package/modules/auth/clerk-nextjs/files/lib/auth-provider.tsx +5 -0
  24. package/modules/auth/clerk-nextjs/files/middleware.ts +9 -0
  25. package/modules/auth/clerk-nextjs/module.json +27 -0
  26. package/modules/auth/clerk-react/files/lib/auth-provider.tsx +15 -0
  27. package/modules/auth/clerk-react/module.json +18 -0
  28. package/modules/auth/nextauth/files/app-router/api/auth/[...nextauth]/route.ts +6 -0
  29. package/modules/auth/nextauth/files/lib/auth.ts +82 -0
  30. package/modules/auth/nextauth/files/pages-router/api/auth/[...nextauth].ts +4 -0
  31. package/modules/auth/nextauth/module.json +50 -0
  32. package/modules/database/drizzle-postgresql/files/drizzle.config.ts +10 -0
  33. package/modules/database/drizzle-postgresql/files/lib/db.ts +7 -0
  34. package/modules/database/drizzle-postgresql/files/lib/schema.ts +8 -0
  35. package/modules/database/drizzle-postgresql/module.json +34 -0
  36. package/modules/database/mongoose-mongodb/files/lib/db.ts +40 -0
  37. package/modules/database/mongoose-mongodb/module.json +17 -0
  38. package/{templates/databases/prisma-mongodb → modules/database/prisma-mongodb/files}/lib/db.ts +2 -6
  39. package/{templates/databases/prisma-mongodb → modules/database/prisma-mongodb/files}/prisma/schema.prisma +1 -0
  40. package/modules/database/prisma-mongodb/module.json +36 -0
  41. package/{templates/databases/prisma-postgresql → modules/database/prisma-postgresql/files}/lib/db.ts +2 -6
  42. package/{templates/databases/prisma-postgresql → modules/database/prisma-postgresql/files}/prisma/schema.prisma +1 -0
  43. package/modules/database/prisma-postgresql/module.json +36 -0
  44. package/package.json +7 -5
  45. package/templates/bases/nextjs-base/README.md +36 -0
  46. package/templates/bases/nextjs-base/app/favicon.ico +0 -0
  47. package/templates/bases/nextjs-base/app/globals.css +26 -3
  48. package/templates/bases/nextjs-base/app/layout.tsx +21 -6
  49. package/templates/bases/nextjs-base/app/page.tsx +61 -4
  50. package/templates/bases/nextjs-base/eslint.config.mjs +18 -0
  51. package/templates/bases/nextjs-base/next.config.ts +4 -2
  52. package/templates/bases/nextjs-base/package-lock.json +6538 -0
  53. package/templates/bases/nextjs-base/package.json +12 -10
  54. package/templates/bases/nextjs-base/postcss.config.mjs +7 -0
  55. package/templates/bases/nextjs-base/public/file.svg +1 -0
  56. package/templates/bases/nextjs-base/public/globe.svg +1 -0
  57. package/templates/bases/nextjs-base/public/next.svg +1 -0
  58. package/templates/bases/nextjs-base/public/vercel.svg +1 -0
  59. package/templates/bases/nextjs-base/public/window.svg +1 -0
  60. package/templates/bases/nextjs-base/template.json +12 -1
  61. package/templates/bases/nextjs-base/tsconfig.json +9 -2
  62. package/templates/bases/react-vite-base/index.html +13 -0
  63. package/templates/bases/react-vite-base/package.json +27 -0
  64. package/templates/bases/react-vite-base/src/App.css +14 -0
  65. package/templates/bases/react-vite-base/src/App.tsx +23 -0
  66. package/templates/bases/react-vite-base/src/index.css +68 -0
  67. package/templates/bases/react-vite-base/src/main.tsx +10 -0
  68. package/templates/bases/react-vite-base/src/vite-env.d.ts +1 -0
  69. package/templates/bases/react-vite-base/template.json +5 -0
  70. package/templates/bases/react-vite-base/tsconfig.json +21 -0
  71. package/templates/bases/react-vite-base/vite.config.ts +7 -0
  72. package/dist/index.d.ts.map +0 -1
  73. package/dist/index.js.map +0 -1
  74. package/dist/lib/create-project.d.ts.map +0 -1
  75. package/dist/lib/create-project.js.map +0 -1
  76. package/dist/lib/template-composer.d.ts.map +0 -1
  77. package/dist/lib/template-composer.js.map +0 -1
  78. package/templates/auth/better-auth-express/config.json +0 -18
  79. package/templates/auth/better-auth-express/src/lib/auth.ts +0 -12
  80. package/templates/auth/better-auth-express/src/routes/auth.ts +0 -10
  81. package/templates/auth/better-auth-nextjs/config.json +0 -18
  82. package/templates/auth/better-auth-nextjs/lib/auth.ts +0 -14
  83. package/templates/auth/nextauth/config.json +0 -18
  84. package/templates/auth/nextauth/lib/auth.ts +0 -31
  85. package/templates/bases/nextjs-base/.eslintrc.json +0 -3
  86. package/templates/databases/prisma-mongodb/config.json +0 -21
  87. package/templates/databases/prisma-postgresql/config.json +0 -22
  88. /package/{templates/auth/nextauth/app → modules/auth/authjs-nextjs/files}/api/auth/[...nextauth]/route.ts +0 -0
@@ -0,0 +1,36 @@
1
+ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
@@ -1,3 +1,26 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
1
+ @import "tailwindcss";
2
+
3
+ :root {
4
+ --background: #ffffff;
5
+ --foreground: #171717;
6
+ }
7
+
8
+ @theme inline {
9
+ --color-background: var(--background);
10
+ --color-foreground: var(--foreground);
11
+ --font-sans: var(--font-geist-sans);
12
+ --font-mono: var(--font-geist-mono);
13
+ }
14
+
15
+ @media (prefers-color-scheme: dark) {
16
+ :root {
17
+ --background: #0a0a0a;
18
+ --foreground: #ededed;
19
+ }
20
+ }
21
+
22
+ body {
23
+ background: var(--background);
24
+ color: var(--foreground);
25
+ font-family: Arial, Helvetica, sans-serif;
26
+ }
@@ -1,19 +1,34 @@
1
- import type { Metadata } from 'next';
2
- import './globals.css';
1
+ import type { Metadata } from "next";
2
+ import { Geist, Geist_Mono } from "next/font/google";
3
+ import "./globals.css";
4
+
5
+ const geistSans = Geist({
6
+ variable: "--font-geist-sans",
7
+ subsets: ["latin"],
8
+ });
9
+
10
+ const geistMono = Geist_Mono({
11
+ variable: "--font-geist-mono",
12
+ subsets: ["latin"],
13
+ });
3
14
 
4
15
  export const metadata: Metadata = {
5
- title: 'StackKit App',
6
- description: 'Generated by create-stackkit-app',
16
+ title: "Create Next App",
17
+ description: "Generated by create next app",
7
18
  };
8
19
 
9
20
  export default function RootLayout({
10
21
  children,
11
22
  }: Readonly<{
12
- children: React.Node;
23
+ children: React.ReactNode;
13
24
  }>) {
14
25
  return (
15
26
  <html lang="en">
16
- <body>{children}</body>
27
+ <body
28
+ className={`${geistSans.variable} ${geistMono.variable} antialiased`}
29
+ >
30
+ {children}
31
+ </body>
17
32
  </html>
18
33
  );
19
34
  }
@@ -1,8 +1,65 @@
1
+ import Image from "next/image";
2
+
1
3
  export default function Home() {
2
4
  return (
3
- <main className="flex min-h-screen flex-col items-center justify-center p-24">
4
- <h1 className="text-4xl font-bold">Welcome to StackKit</h1>
5
- <p className="mt-4 text-xl">Your project is ready to go!</p>
6
- </main>
5
+ <div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
6
+ <main className="flex min-h-screen w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
7
+ <Image
8
+ className="dark:invert"
9
+ src="/next.svg"
10
+ alt="Next.js logo"
11
+ width={100}
12
+ height={20}
13
+ priority
14
+ />
15
+ <div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
16
+ <h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
17
+ To get started, edit the page.tsx file.
18
+ </h1>
19
+ <p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
20
+ Looking for a starting point or more instructions? Head over to{" "}
21
+ <a
22
+ href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
23
+ className="font-medium text-zinc-950 dark:text-zinc-50"
24
+ >
25
+ Templates
26
+ </a>{" "}
27
+ or the{" "}
28
+ <a
29
+ href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
30
+ className="font-medium text-zinc-950 dark:text-zinc-50"
31
+ >
32
+ Learning
33
+ </a>{" "}
34
+ center.
35
+ </p>
36
+ </div>
37
+ <div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
38
+ <a
39
+ className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
40
+ href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
41
+ target="_blank"
42
+ rel="noopener noreferrer"
43
+ >
44
+ <Image
45
+ className="dark:invert"
46
+ src="/vercel.svg"
47
+ alt="Vercel logomark"
48
+ width={16}
49
+ height={16}
50
+ />
51
+ Deploy Now
52
+ </a>
53
+ <a
54
+ className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
55
+ href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
56
+ target="_blank"
57
+ rel="noopener noreferrer"
58
+ >
59
+ Documentation
60
+ </a>
61
+ </div>
62
+ </main>
63
+ </div>
7
64
  );
8
65
  }
@@ -0,0 +1,18 @@
1
+ import { defineConfig, globalIgnores } from "eslint/config";
2
+ import nextVitals from "eslint-config-next/core-web-vitals";
3
+ import nextTs from "eslint-config-next/typescript";
4
+
5
+ const eslintConfig = defineConfig([
6
+ ...nextVitals,
7
+ ...nextTs,
8
+ // Override default ignores of eslint-config-next.
9
+ globalIgnores([
10
+ // Default ignores of eslint-config-next:
11
+ ".next/**",
12
+ "out/**",
13
+ "build/**",
14
+ "next-env.d.ts",
15
+ ]),
16
+ ]);
17
+
18
+ export default eslintConfig;
@@ -1,5 +1,7 @@
1
- import type { NextConfig } from 'next';
1
+ import type { NextConfig } from "next";
2
2
 
3
- const nextConfig: NextConfig = {};
3
+ const nextConfig: NextConfig = {
4
+ /* config options here */
5
+ };
4
6
 
5
7
  export default nextConfig;