create-apppaaaul 2.0.2 → 2.0.4
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 +20 -20
- package/dist/index.js +168 -0
- package/dist/index.js.map +1 -0
- package/dist/templates/nextjs-ts-clean/project/.editorconfig +9 -0
- package/dist/templates/nextjs-ts-clean/project/.vscode/launch.json +28 -0
- package/dist/templates/nextjs-ts-clean/project/.vscode/settings.json +8 -0
- package/dist/templates/nextjs-ts-clean/project/README.md +15 -0
- package/dist/templates/nextjs-ts-clean/project/eslint.config.mjs +172 -0
- package/dist/templates/nextjs-ts-clean/project/next.config.mjs +13 -0
- package/dist/templates/nextjs-ts-clean/project/package.json +46 -0
- package/dist/templates/nextjs-ts-clean/project/pnpm-lock.yaml +5463 -0
- package/dist/templates/nextjs-ts-clean/project/postcss.config.js +6 -0
- package/dist/templates/nextjs-ts-clean/project/public/next.svg +1 -0
- package/dist/templates/nextjs-ts-clean/project/public/vercel.svg +1 -0
- package/dist/templates/nextjs-ts-clean/project/src/app/favicon.ico +0 -0
- package/dist/templates/nextjs-ts-clean/project/src/app/globals.css +77 -0
- package/dist/templates/nextjs-ts-clean/project/src/app/layout.tsx +26 -0
- package/dist/templates/nextjs-ts-clean/project/src/app/page.tsx +5 -0
- package/dist/templates/nextjs-ts-clean/project/src/components/ui/button.tsx +49 -0
- package/dist/templates/nextjs-ts-clean/project/src/lib/utils.ts +6 -0
- package/dist/templates/nextjs-ts-clean/project/tailwind.config.ts +80 -0
- package/dist/templates/nextjs-ts-clean/project/tsconfig.json +27 -0
- package/dist/templates/nextjs-ts-landing/project/.editorconfig +9 -0
- package/dist/templates/nextjs-ts-landing/project/.eslintrc.cjs +101 -0
- package/dist/templates/nextjs-ts-landing/project/.eslintrc.mjs +172 -0
- package/dist/templates/nextjs-ts-landing/project/.vscode/launch.json +28 -0
- package/dist/templates/nextjs-ts-landing/project/.vscode/settings.json +8 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/.editorconfig +9 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/.eslintrc.mjs +172 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/launch.json +28 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/settings.json +8 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/README.md +15 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/components.json +17 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/docker-compose.yml +15 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/drizzle.config.ts +11 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/next.config.mjs +10 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/package.json +57 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/pnpm-lock.yaml +6248 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/postcss.config.js +6 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/public/next.svg +1 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/public/vercel.svg +1 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/favicon.ico +0 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/globals.css +47 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/layout.tsx +20 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/page.tsx +5 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/auth.ts +79 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/components/ui/button.tsx +49 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/index.ts +25 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/schema.ts +93 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/lib/utils.ts +6 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/tailwind.config.ts +80 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/tsconfig.json +27 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.editorconfig +9 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/launch.json +28 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/settings.json +8 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/README.md +15 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/components.json +17 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/docker-compose.yml +15 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/eslint.config.mjs +172 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/next.config.mjs +10 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/package.json +58 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/pnpm-lock.yaml +5854 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/pnpm-workspace.yaml +6 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/postcss.config.mjs +5 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/20250329125127_init/migration.sql +25 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/migration_lock.toml +3 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/schema.prisma +24 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/public/next.svg +1 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/public/vercel.svg +1 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/favicon.ico +0 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/globals.css +117 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/layout.tsx +20 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/page.tsx +5 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/auth.ts +79 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/components/ui/button.tsx +49 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/db.ts +11 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/utils.ts +6 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/tailwind.config.ts +80 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/tsconfig.json +27 -0
- package/package.json +43 -43
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import tseslint from "typescript-eslint";
|
|
3
|
+
import eslintPluginReact from "eslint-plugin-react";
|
|
4
|
+
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
|
|
5
|
+
import {fixupPluginRules} from "@eslint/compat";
|
|
6
|
+
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
|
|
7
|
+
import eslintPluginImport from "eslint-plugin-import";
|
|
8
|
+
import eslintPluginReactCompiler from "eslint-plugin-react-compiler";
|
|
9
|
+
import eslintPluginNext from "@next/eslint-plugin-next";
|
|
10
|
+
import eslintPluginJsxA11y from "eslint-plugin-jsx-a11y";
|
|
11
|
+
import vercelStyleGuideTypescript from "@vercel/style-guide/eslint/typescript";
|
|
12
|
+
import vercelStyleGuideReact from "@vercel/style-guide/eslint/rules/react";
|
|
13
|
+
import vercelStyleGuideNext from "@vercel/style-guide/eslint/next";
|
|
14
|
+
|
|
15
|
+
export default [
|
|
16
|
+
// Ignores configuration
|
|
17
|
+
{
|
|
18
|
+
ignores: ["node_modules", ".next", "out", "coverage", ".idea"],
|
|
19
|
+
},
|
|
20
|
+
// General configuration
|
|
21
|
+
{
|
|
22
|
+
rules: {
|
|
23
|
+
"padding-line-between-statements": [
|
|
24
|
+
"warn",
|
|
25
|
+
{blankLine: "always", prev: "*", next: ["return", "export"]},
|
|
26
|
+
{blankLine: "always", prev: ["const", "let", "var"], next: "*"},
|
|
27
|
+
{blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]},
|
|
28
|
+
],
|
|
29
|
+
"no-console": "warn",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
// React configuration
|
|
33
|
+
{
|
|
34
|
+
plugins: {
|
|
35
|
+
react: fixupPluginRules(eslintPluginReact),
|
|
36
|
+
"react-hooks": fixupPluginRules(eslintPluginReactHooks),
|
|
37
|
+
"react-compiler": fixupPluginRules(eslintPluginReactCompiler),
|
|
38
|
+
"jsx-a11y": fixupPluginRules(eslintPluginJsxA11y),
|
|
39
|
+
},
|
|
40
|
+
languageOptions: {
|
|
41
|
+
parserOptions: {
|
|
42
|
+
ecmaFeatures: {
|
|
43
|
+
jsx: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
globals: {
|
|
47
|
+
...globals.browser,
|
|
48
|
+
...globals.serviceworker,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
settings: {
|
|
52
|
+
react: {
|
|
53
|
+
version: "detect",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
rules: {
|
|
57
|
+
...eslintPluginReact.configs.recommended.rules,
|
|
58
|
+
...eslintPluginJsxA11y.configs.recommended.rules,
|
|
59
|
+
...eslintPluginReactHooks.configs.recommended.rules,
|
|
60
|
+
...vercelStyleGuideReact.rules,
|
|
61
|
+
"react/prop-types": "off",
|
|
62
|
+
"react/jsx-uses-react": "off",
|
|
63
|
+
"react/react-in-jsx-scope": "off",
|
|
64
|
+
"react/self-closing-comp": "warn",
|
|
65
|
+
"react/jsx-sort-props": [
|
|
66
|
+
"warn",
|
|
67
|
+
{
|
|
68
|
+
callbacksLast: true,
|
|
69
|
+
shorthandFirst: true,
|
|
70
|
+
noSortAlphabetically: false,
|
|
71
|
+
reservedFirst: true,
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
"react-compiler/react-compiler": "error",
|
|
75
|
+
"jsx-a11y/no-static-element-interactions": "off",
|
|
76
|
+
"jsx-a11y/click-events-have-key-events": "off",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
// TypeScript configuration
|
|
80
|
+
...[
|
|
81
|
+
...tseslint.configs.recommended,
|
|
82
|
+
{
|
|
83
|
+
rules: {
|
|
84
|
+
...vercelStyleGuideTypescript.rules,
|
|
85
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
86
|
+
"@typescript-eslint/no-shadow": "off",
|
|
87
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
88
|
+
"@typescript-eslint/require-await": "off",
|
|
89
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
90
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
91
|
+
"@typescript-eslint/no-unused-vars": [
|
|
92
|
+
"warn",
|
|
93
|
+
{
|
|
94
|
+
args: "after-used",
|
|
95
|
+
ignoreRestSiblings: false,
|
|
96
|
+
argsIgnorePattern: "^_.*?$",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
// Prettier configuration
|
|
103
|
+
...[
|
|
104
|
+
eslintPluginPrettier,
|
|
105
|
+
{
|
|
106
|
+
rules: {
|
|
107
|
+
"prettier/prettier": [
|
|
108
|
+
"warn",
|
|
109
|
+
{
|
|
110
|
+
printWidth: 100,
|
|
111
|
+
trailingComma: "all",
|
|
112
|
+
tabWidth: 2,
|
|
113
|
+
semi: true,
|
|
114
|
+
singleQuote: false,
|
|
115
|
+
bracketSpacing: true,
|
|
116
|
+
arrowParens: "always",
|
|
117
|
+
endOfLine: "auto",
|
|
118
|
+
plugins: ["prettier-plugin-tailwindcss"],
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
// Import configuration
|
|
125
|
+
{
|
|
126
|
+
plugins: {
|
|
127
|
+
import: fixupPluginRules(eslintPluginImport),
|
|
128
|
+
},
|
|
129
|
+
rules: {
|
|
130
|
+
"import/no-default-export": "off",
|
|
131
|
+
"import/order": [
|
|
132
|
+
"warn",
|
|
133
|
+
{
|
|
134
|
+
groups: [
|
|
135
|
+
"type",
|
|
136
|
+
"builtin",
|
|
137
|
+
"object",
|
|
138
|
+
"external",
|
|
139
|
+
"internal",
|
|
140
|
+
"parent",
|
|
141
|
+
"sibling",
|
|
142
|
+
"index",
|
|
143
|
+
],
|
|
144
|
+
pathGroups: [
|
|
145
|
+
{
|
|
146
|
+
pattern: "~/**",
|
|
147
|
+
group: "external",
|
|
148
|
+
position: "after",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
"newlines-between": "always",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
// Next configuration
|
|
157
|
+
{
|
|
158
|
+
plugins: {
|
|
159
|
+
next: fixupPluginRules(eslintPluginNext),
|
|
160
|
+
},
|
|
161
|
+
languageOptions: {
|
|
162
|
+
globals: {
|
|
163
|
+
...globals.node,
|
|
164
|
+
...globals.browser,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
rules: {
|
|
168
|
+
...vercelStyleGuideNext.rules,
|
|
169
|
+
"@next/next/no-img-element": "off",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Next.js: debug server-side",
|
|
6
|
+
"type": "node-terminal",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"command": "pnpm dev"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Next.js: debug client-side",
|
|
12
|
+
"type": "chrome",
|
|
13
|
+
"request": "launch",
|
|
14
|
+
"url": "http://localhost:3000"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "Next.js: debug full stack",
|
|
18
|
+
"type": "node-terminal",
|
|
19
|
+
"request": "launch",
|
|
20
|
+
"command": "pnpm dev",
|
|
21
|
+
"serverReadyAction": {
|
|
22
|
+
"pattern": "started server on .+, url: (https?://.+)",
|
|
23
|
+
"uriFormat": "%s",
|
|
24
|
+
"action": "debugWithChrome"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## Getting Started with {{name}}
|
|
2
|
+
|
|
3
|
+
First, run the development server:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm run dev
|
|
7
|
+
# or
|
|
8
|
+
yarn dev
|
|
9
|
+
# or
|
|
10
|
+
pnpm dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
14
|
+
|
|
15
|
+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "default",
|
|
4
|
+
"rsc": true,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "tailwind.config.ts",
|
|
8
|
+
"css": "src/app/globals.css",
|
|
9
|
+
"baseColor": "zinc",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"aliases": {
|
|
14
|
+
"components": "@/components",
|
|
15
|
+
"utils": "@/lib/utils"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { config } from "dotenv";
|
|
2
|
+
import { defineConfig } from "drizzle-kit";
|
|
3
|
+
config({ path: ".env" });
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
schema: "./src/db/schema.ts",
|
|
7
|
+
dialect: "postgresql",
|
|
8
|
+
dbCredentials: {
|
|
9
|
+
url: process.env.DATABASE_URL!,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{name}}",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "docker compose up -d && next dev --turbopack",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"lint": "next lint",
|
|
10
|
+
"db:push": "drizzle-kit push",
|
|
11
|
+
"db:studio": "pnpm drizzle-kit studio"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@auth/drizzle-adapter": "^1.8.0",
|
|
15
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
16
|
+
"autoprefixer": "^10.4.21",
|
|
17
|
+
"bcryptjs": "^2.4.3",
|
|
18
|
+
"class-variance-authority": "^0.7.1",
|
|
19
|
+
"clsx": "^2.1.1",
|
|
20
|
+
"dotenv": "^16.4.7",
|
|
21
|
+
"drizzle-orm": "^0.39.3",
|
|
22
|
+
"lucide-react": "^0.474.0",
|
|
23
|
+
"next": "^15.2.4",
|
|
24
|
+
"next-auth": "4.24.11",
|
|
25
|
+
"postcss": "^8.5.3",
|
|
26
|
+
"postgres": "^3.4.5",
|
|
27
|
+
"react": "^19.0.0",
|
|
28
|
+
"react-dom": "^19.0.0",
|
|
29
|
+
"sonner": "^1.7.4",
|
|
30
|
+
"tailwind-merge": "^3.0.2",
|
|
31
|
+
"tailwindcss": "^4.0.15",
|
|
32
|
+
"tailwindcss-animate": "^1.0.7",
|
|
33
|
+
"tsx": "^4.19.3",
|
|
34
|
+
"zod": "^3.24.2"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@eslint/compat": "^1.2.7",
|
|
38
|
+
"@next/eslint-plugin-next": "15.1.6",
|
|
39
|
+
"@types/node": "^22.13.13",
|
|
40
|
+
"@types/react": "^19.0.12",
|
|
41
|
+
"@types/react-dom": "^19.0.4",
|
|
42
|
+
"@vercel/style-guide": "^6.0.0",
|
|
43
|
+
"drizzle-kit": "^0.30.5",
|
|
44
|
+
"eslint": "^9.23.0",
|
|
45
|
+
"eslint-config-next": "15.1.6",
|
|
46
|
+
"eslint-config-prettier": "^10.1.1",
|
|
47
|
+
"eslint-plugin-import": "^2.31.0",
|
|
48
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
49
|
+
"eslint-plugin-prettier": "^5.2.4",
|
|
50
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
|
|
51
|
+
"globals": "^15.15.0",
|
|
52
|
+
"prettier": "^3.5.3",
|
|
53
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
54
|
+
"typescript": "^5.8.2",
|
|
55
|
+
"typescript-eslint": "^8.27.0"
|
|
56
|
+
}
|
|
57
|
+
}
|