create-apppaaaul 2.0.11 → 2.0.13
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 +0 -0
- package/dist/index.js.map +1 -1
- package/dist/templates/nextjs-ts-clean/.cursor/rules/bootstrap-cursor-rules.mdc +44 -44
- package/dist/templates/nextjs-ts-clean/.cursor/rules/front-end-cursor-rules.mdc +37 -37
- package/dist/templates/nextjs-ts-clean/.cursor/rules/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +57 -57
- package/dist/templates/{nextjs-ts-landing-drizzle → nextjs-ts-clean/project/.cursor}/rules/bootstrap-cursor-rules.mdc +44 -44
- package/dist/templates/{nextjs-ts-landing-drizzle → nextjs-ts-clean/project/.cursor}/rules/front-end-cursor-rules.mdc +37 -37
- package/dist/templates/{nextjs-ts-landing-prisma → nextjs-ts-clean/project/.cursor}/rules/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +57 -57
- package/dist/templates/nextjs-ts-clean/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-clean/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-clean/project/.vscode/settings.json +8 -8
- package/dist/templates/nextjs-ts-clean/project/README.md +15 -15
- package/dist/templates/nextjs-ts-clean/project/components.json +20 -20
- package/dist/templates/nextjs-ts-clean/project/eslint.config.mjs +21 -10
- package/dist/templates/nextjs-ts-clean/project/next.config.mjs +13 -13
- package/dist/templates/nextjs-ts-clean/project/package.json +48 -49
- package/dist/templates/nextjs-ts-clean/project/postcss.config.js +3 -3
- package/dist/templates/nextjs-ts-clean/project/src/app/globals.css +228 -228
- package/dist/templates/nextjs-ts-clean/project/src/app/layout.tsx +26 -26
- package/dist/templates/nextjs-ts-clean/project/src/app/page.tsx +5 -5
- package/dist/templates/nextjs-ts-clean/project/src/components/ui/button.tsx +49 -49
- package/dist/templates/nextjs-ts-clean/project/src/lib/utils.ts +6 -6
- package/dist/templates/nextjs-ts-clean/project/tailwind.config.ts +94 -94
- package/dist/templates/nextjs-ts-clean/project/tsconfig.json +26 -26
- package/dist/templates/nextjs-ts-landing/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-landing/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-landing/project/.vscode/settings.json +8 -8
- package/dist/templates/{nextjs-ts-landing-prisma → nextjs-ts-landing-drizzle/project/.cursor}/rules/bootstrap-cursor-rules.mdc +44 -44
- package/dist/templates/{nextjs-ts-landing-prisma → nextjs-ts-landing-drizzle/project/.cursor}/rules/front-end-cursor-rules.mdc +37 -37
- package/dist/templates/nextjs-ts-landing-drizzle/{rules → project/.cursor/rules}/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +57 -57
- package/dist/templates/nextjs-ts-landing-drizzle/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/settings.json +8 -8
- package/dist/templates/nextjs-ts-landing-drizzle/project/README.md +15 -15
- package/dist/templates/nextjs-ts-landing-drizzle/project/components.json +20 -20
- package/dist/templates/nextjs-ts-landing-drizzle/project/drizzle.config.ts +11 -11
- package/dist/templates/nextjs-ts-landing-drizzle/project/eslint.config.mjs +183 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/next.config.mjs +10 -10
- package/dist/templates/nextjs-ts-landing-drizzle/project/package.json +57 -58
- package/dist/templates/nextjs-ts-landing-drizzle/project/postcss.config.js +3 -3
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/api/auth/[...nextauth]/route.ts +3 -3
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/globals.css +161 -161
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/layout.tsx +25 -25
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/page.tsx +5 -5
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/auth.ts +79 -79
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/components/ui/button.tsx +49 -49
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/index.ts +25 -25
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/schema.ts +93 -93
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/lib/utils.ts +6 -6
- package/dist/templates/nextjs-ts-landing-drizzle/project/tailwind.config.ts +80 -80
- package/dist/templates/nextjs-ts-landing-drizzle/project/tsconfig.json +27 -27
- package/dist/templates/nextjs-ts-landing-prisma/project/.cursor/rules/bootstrap-cursor-rules.mdc +45 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.cursor/rules/front-end-cursor-rules.mdc +38 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.cursor/rules/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +58 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/settings.json +8 -8
- package/dist/templates/nextjs-ts-landing-prisma/project/README.md +15 -15
- package/dist/templates/nextjs-ts-landing-prisma/project/components.json +20 -20
- package/dist/templates/nextjs-ts-landing-prisma/project/eslint.config.mjs +25 -14
- package/dist/templates/nextjs-ts-landing-prisma/project/next.config.mjs +10 -10
- package/dist/templates/nextjs-ts-landing-prisma/project/package.json +57 -59
- package/dist/templates/nextjs-ts-landing-prisma/project/postcss.config.mjs +3 -3
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/20250329125127_init/migration.sql +25 -25
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/migration_lock.toml +2 -2
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/schema.prisma +24 -24
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/api/auth/[...nextauth]/route.ts +3 -3
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/globals.css +205 -205
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/layout.tsx +26 -26
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/page.tsx +5 -5
- package/dist/templates/nextjs-ts-landing-prisma/project/src/auth.ts +31 -31
- package/dist/templates/nextjs-ts-landing-prisma/project/src/components/ui/button.tsx +49 -49
- package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/db.ts +9 -9
- package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/utils.ts +6 -6
- package/dist/templates/nextjs-ts-landing-prisma/project/tailwind.config.ts +80 -80
- package/dist/templates/nextjs-ts-landing-prisma/project/tsconfig.json +27 -27
- package/package.json +43 -43
- package/dist/templates/nextjs-ts-landing/project/.eslintrc.cjs +0 -101
|
@@ -1,28 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.formatOnSave": false,
|
|
3
|
-
"typescript.tsdk": "node_modules\\typescript\\lib",
|
|
4
|
-
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
5
|
-
"editor.codeActionsOnSave": {
|
|
6
|
-
"source.fixAll.eslint": "explicit"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"editor.formatOnSave": false,
|
|
3
|
+
"typescript.tsdk": "node_modules\\typescript\\lib",
|
|
4
|
+
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
5
|
+
"editor.codeActionsOnSave": {
|
|
6
|
+
"source.fixAll.eslint": "explicit"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,15 +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.
|
|
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.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
-
"style": "new-york",
|
|
4
|
-
"rsc": true,
|
|
5
|
-
"tsx": true,
|
|
6
|
-
"tailwind": {
|
|
7
|
-
"config": "tailwind.config.ts",
|
|
8
|
-
"css": "src/app/globals.css",
|
|
9
|
-
"baseColor": "neutral",
|
|
10
|
-
"cssVariables": true,
|
|
11
|
-
"prefix": ""
|
|
12
|
-
},
|
|
13
|
-
"aliases": {
|
|
14
|
-
"components": "@/components",
|
|
15
|
-
"utils": "@/lib/utils",
|
|
16
|
-
"ui": "@/components/ui",
|
|
17
|
-
"lib": "@/lib",
|
|
18
|
-
"hooks": "@/hooks"
|
|
19
|
-
},
|
|
20
|
-
"iconLibrary": "lucide"
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "new-york",
|
|
4
|
+
"rsc": true,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "tailwind.config.ts",
|
|
8
|
+
"css": "src/app/globals.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"aliases": {
|
|
14
|
+
"components": "@/components",
|
|
15
|
+
"utils": "@/lib/utils",
|
|
16
|
+
"ui": "@/components/ui",
|
|
17
|
+
"lib": "@/lib",
|
|
18
|
+
"hooks": "@/hooks"
|
|
19
|
+
},
|
|
20
|
+
"iconLibrary": "lucide"
|
|
21
21
|
}
|
|
@@ -1,11 +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
|
-
});
|
|
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,183 @@
|
|
|
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
|
+
|
|
12
|
+
export default [
|
|
13
|
+
// Ignores configuration
|
|
14
|
+
{
|
|
15
|
+
ignores: ["node_modules", ".next", "out", "coverage", ".idea"],
|
|
16
|
+
},
|
|
17
|
+
// General configuration
|
|
18
|
+
{
|
|
19
|
+
rules: {
|
|
20
|
+
"padding-line-between-statements": [
|
|
21
|
+
"warn",
|
|
22
|
+
{blankLine: "always", prev: "*", next: ["return", "export"]},
|
|
23
|
+
{blankLine: "always", prev: ["const", "let", "var"], next: "*"},
|
|
24
|
+
{blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]},
|
|
25
|
+
],
|
|
26
|
+
"no-console": ["warn", {allow: ["error"]}],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
// React configuration
|
|
30
|
+
{
|
|
31
|
+
plugins: {
|
|
32
|
+
react: fixupPluginRules(eslintPluginReact),
|
|
33
|
+
"react-hooks": fixupPluginRules(eslintPluginReactHooks),
|
|
34
|
+
"react-compiler": fixupPluginRules(eslintPluginReactCompiler),
|
|
35
|
+
"jsx-a11y": fixupPluginRules(eslintPluginJsxA11y),
|
|
36
|
+
},
|
|
37
|
+
languageOptions: {
|
|
38
|
+
parserOptions: {
|
|
39
|
+
ecmaFeatures: {
|
|
40
|
+
jsx: true,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
globals: {
|
|
44
|
+
...globals.browser,
|
|
45
|
+
...globals.serviceworker,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
settings: {
|
|
49
|
+
react: {
|
|
50
|
+
version: "detect",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
rules: {
|
|
54
|
+
...eslintPluginReact.configs.recommended.rules,
|
|
55
|
+
...eslintPluginJsxA11y.configs.recommended.rules,
|
|
56
|
+
...eslintPluginReactHooks.configs.recommended.rules,
|
|
57
|
+
"react/jsx-boolean-value": ["error", "never"],
|
|
58
|
+
"react/jsx-curly-brace-presence": ["error", {props: "never", children: "never"}],
|
|
59
|
+
"react/jsx-no-useless-fragment": "error",
|
|
60
|
+
"react/prop-types": "off",
|
|
61
|
+
"react/jsx-uses-react": "off",
|
|
62
|
+
"react/no-array-index-key": "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
|
+
"react/jsx-no-leaked-render": "off",
|
|
76
|
+
"jsx-a11y/no-static-element-interactions": "off",
|
|
77
|
+
"jsx-a11y/click-events-have-key-events": "off",
|
|
78
|
+
"jsx-a11y/html-has-lang": "off",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
// TypeScript configuration
|
|
82
|
+
...[
|
|
83
|
+
...tseslint.configs.recommended,
|
|
84
|
+
{
|
|
85
|
+
rules: {
|
|
86
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
87
|
+
"@typescript-eslint/no-empty-object-type": "error",
|
|
88
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
89
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
90
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
91
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
92
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
93
|
+
"@typescript-eslint/no-namespace": "off",
|
|
94
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
95
|
+
"@typescript-eslint/no-shadow": "off",
|
|
96
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
97
|
+
"@typescript-eslint/require-await": "off",
|
|
98
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
99
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
100
|
+
"@typescript-eslint/no-unused-vars": [
|
|
101
|
+
"warn",
|
|
102
|
+
{
|
|
103
|
+
args: "after-used",
|
|
104
|
+
ignoreRestSiblings: false,
|
|
105
|
+
argsIgnorePattern: "^_.*?$",
|
|
106
|
+
caughtErrorsIgnorePattern: "^_.*?$",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
// Prettier configuration
|
|
113
|
+
...[
|
|
114
|
+
eslintPluginPrettier,
|
|
115
|
+
{
|
|
116
|
+
rules: {
|
|
117
|
+
"prettier/prettier": [
|
|
118
|
+
"warn",
|
|
119
|
+
{
|
|
120
|
+
printWidth: 100,
|
|
121
|
+
trailingComma: "all",
|
|
122
|
+
tabWidth: 2,
|
|
123
|
+
semi: true,
|
|
124
|
+
singleQuote: false,
|
|
125
|
+
bracketSpacing: true,
|
|
126
|
+
arrowParens: "always",
|
|
127
|
+
endOfLine: "auto",
|
|
128
|
+
plugins: ["prettier-plugin-tailwindcss"],
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
// Import configuration
|
|
135
|
+
{
|
|
136
|
+
plugins: {
|
|
137
|
+
import: fixupPluginRules(eslintPluginImport),
|
|
138
|
+
},
|
|
139
|
+
rules: {
|
|
140
|
+
"import/no-default-export": "off",
|
|
141
|
+
"import/order": [
|
|
142
|
+
"warn",
|
|
143
|
+
{
|
|
144
|
+
groups: [
|
|
145
|
+
"type",
|
|
146
|
+
"builtin",
|
|
147
|
+
"object",
|
|
148
|
+
"external",
|
|
149
|
+
"internal",
|
|
150
|
+
"parent",
|
|
151
|
+
"sibling",
|
|
152
|
+
"index",
|
|
153
|
+
],
|
|
154
|
+
pathGroups: [
|
|
155
|
+
{
|
|
156
|
+
pattern: "@/*",
|
|
157
|
+
group: "external",
|
|
158
|
+
position: "after",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
"newlines-between": "always",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
// Next configuration
|
|
167
|
+
{
|
|
168
|
+
plugins: {
|
|
169
|
+
"@next/next": fixupPluginRules(eslintPluginNext),
|
|
170
|
+
},
|
|
171
|
+
languageOptions: {
|
|
172
|
+
globals: {
|
|
173
|
+
...globals.node,
|
|
174
|
+
...globals.browser,
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
rules: {
|
|
178
|
+
...eslintPluginNext.configs.recommended.rules,
|
|
179
|
+
"@next/next/no-img-element": "off",
|
|
180
|
+
"@next/next/no-html-link-for-pages": "off",
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** @type {import('next').NextConfig} */
|
|
2
|
-
const nextConfig = {
|
|
3
|
-
logging: {
|
|
4
|
-
fetches: {
|
|
5
|
-
fullUrl: true,
|
|
6
|
-
},
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default nextConfig;
|
|
1
|
+
/** @type {import('next').NextConfig} */
|
|
2
|
+
const nextConfig = {
|
|
3
|
+
logging: {
|
|
4
|
+
fetches: {
|
|
5
|
+
fullUrl: true,
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default nextConfig;
|
|
@@ -1,59 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{name}}",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "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.
|
|
15
|
-
"@radix-ui/react-slot": "^1.
|
|
16
|
-
"@tailwindcss/postcss": "^4.1.4",
|
|
17
|
-
"autoprefixer": "^10.4.21",
|
|
18
|
-
"bcryptjs": "^
|
|
19
|
-
"class-variance-authority": "^0.7.1",
|
|
20
|
-
"clsx": "^2.1.1",
|
|
21
|
-
"dotenv": "^
|
|
22
|
-
"drizzle-orm": "^0.
|
|
23
|
-
"lucide-react": "^0.
|
|
24
|
-
"next": "^15.3.
|
|
25
|
-
"next-auth": "4.24.11",
|
|
26
|
-
"postcss": "^8.5.
|
|
27
|
-
"postgres": "^3.4.
|
|
28
|
-
"react": "^19.1.0",
|
|
29
|
-
"react-dom": "^19.1.0",
|
|
30
|
-
"sonner": "^2.0.
|
|
31
|
-
"tailwind-merge": "^3.
|
|
32
|
-
"tailwindcss": "^4.1.
|
|
33
|
-
"tailwindcss-animate": "^1.0.7",
|
|
34
|
-
"tsx": "^4.
|
|
35
|
-
"zod": "^
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@eslint/compat": "^1.
|
|
39
|
-
"@next/eslint-plugin-next": "15.
|
|
40
|
-
"@types/node": "^
|
|
41
|
-
"@types/react": "^19.
|
|
42
|
-
"@types/react-dom": "^19.1.
|
|
43
|
-
"
|
|
44
|
-
"drizzle-kit": "^0.31.
|
|
45
|
-
"eslint": "^9.
|
|
46
|
-
"eslint-config-next": "15.3.
|
|
47
|
-
"eslint-config-prettier": "^10.1.
|
|
48
|
-
"eslint-plugin-import": "^2.
|
|
49
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
50
|
-
"eslint-plugin-prettier": "^5.
|
|
51
|
-
"eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
|
|
52
|
-
"globals": "^16.
|
|
53
|
-
"prettier": "^3.
|
|
54
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
55
|
-
"
|
|
56
|
-
"typescript": "^
|
|
57
|
-
|
|
58
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "{{name}}",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "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.10.0",
|
|
15
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
16
|
+
"@tailwindcss/postcss": "^4.1.4",
|
|
17
|
+
"autoprefixer": "^10.4.21",
|
|
18
|
+
"bcryptjs": "^3.0.2",
|
|
19
|
+
"class-variance-authority": "^0.7.1",
|
|
20
|
+
"clsx": "^2.1.1",
|
|
21
|
+
"dotenv": "^17.2.0",
|
|
22
|
+
"drizzle-orm": "^0.44.2",
|
|
23
|
+
"lucide-react": "^0.525.0",
|
|
24
|
+
"next": "^15.3.5",
|
|
25
|
+
"next-auth": "4.24.11",
|
|
26
|
+
"postcss": "^8.5.6",
|
|
27
|
+
"postgres": "^3.4.7",
|
|
28
|
+
"react": "^19.1.0",
|
|
29
|
+
"react-dom": "^19.1.0",
|
|
30
|
+
"sonner": "^2.0.6",
|
|
31
|
+
"tailwind-merge": "^3.3.1",
|
|
32
|
+
"tailwindcss": "^4.1.11",
|
|
33
|
+
"tailwindcss-animate": "^1.0.7",
|
|
34
|
+
"tsx": "^4.20.3",
|
|
35
|
+
"zod": "^4.0.5"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@eslint/compat": "^1.3.1",
|
|
39
|
+
"@next/eslint-plugin-next": "15.3.5",
|
|
40
|
+
"@types/node": "^24.0.13",
|
|
41
|
+
"@types/react": "^19.1.8",
|
|
42
|
+
"@types/react-dom": "^19.1.6",
|
|
43
|
+
"babel-plugin-react-compiler": "19.0.0-beta-e1e972c-20250221",
|
|
44
|
+
"drizzle-kit": "^0.31.4",
|
|
45
|
+
"eslint": "^9.30.1",
|
|
46
|
+
"eslint-config-next": "15.3.5",
|
|
47
|
+
"eslint-config-prettier": "^10.1.5",
|
|
48
|
+
"eslint-plugin-import": "^2.32.0",
|
|
49
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
50
|
+
"eslint-plugin-prettier": "^5.5.1",
|
|
51
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
|
|
52
|
+
"globals": "^16.3.0",
|
|
53
|
+
"prettier": "^3.6.2",
|
|
54
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
55
|
+
"typescript": "^5.8.3",
|
|
56
|
+
"typescript-eslint": "^8.36.0"
|
|
57
|
+
}
|
|
59
58
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
plugins: ["@tailwindcss/postcss"],
|
|
3
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
plugins: ["@tailwindcss/postcss"],
|
|
3
|
+
};
|
package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/api/auth/[...nextauth]/route.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { handlers } from "@/auth";
|
|
2
|
-
|
|
3
|
-
export const { GET, POST } = handlers;
|
|
1
|
+
import { handlers } from "@/auth";
|
|
2
|
+
|
|
3
|
+
export const { GET, POST } = handlers;
|