create-n8-app 0.3.0 → 0.3.1
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/dist/index.js +10 -2
- package/package.json +1 -1
- package/template/_package.json +39 -33
- package/template/app/layout.tsx +1 -1
- package/template/lib/utils.ts +2 -2
- package/template/tsconfig.json +19 -5
package/dist/index.js
CHANGED
|
@@ -122,7 +122,15 @@ async function runShadcnInit(targetDir) {
|
|
|
122
122
|
stdio: "inherit"
|
|
123
123
|
});
|
|
124
124
|
logger.info("Adding base Shadcn/ui components...");
|
|
125
|
-
const baseComponents = [
|
|
125
|
+
const baseComponents = [
|
|
126
|
+
"button",
|
|
127
|
+
"card",
|
|
128
|
+
"input",
|
|
129
|
+
"label",
|
|
130
|
+
"form",
|
|
131
|
+
"sonner",
|
|
132
|
+
"textarea"
|
|
133
|
+
];
|
|
126
134
|
await execa("npx", ["shadcn@latest", "add", ...baseComponents, "-y"], {
|
|
127
135
|
cwd: targetDir,
|
|
128
136
|
stdio: "inherit"
|
|
@@ -232,7 +240,7 @@ async function createProject(options) {
|
|
|
232
240
|
|
|
233
241
|
// src/index.ts
|
|
234
242
|
var program = new Command();
|
|
235
|
-
program.name("create-n8-app").description("Create a new Next.js app with the N8 stack").version("0.3.
|
|
243
|
+
program.name("create-n8-app").description("Create a new Next.js app with the N8 stack").version("0.3.1").argument("[project-name]", "Name of the project").option("--skip-install", "Skip installing dependencies").option("--skip-git", "Skip initializing git repository").action(async (projectName, options) => {
|
|
236
244
|
try {
|
|
237
245
|
await createProject({
|
|
238
246
|
projectName,
|
package/package.json
CHANGED
package/template/_package.json
CHANGED
|
@@ -17,46 +17,52 @@
|
|
|
17
17
|
"db:studio": "drizzle-kit studio"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ai-sdk/openai": "^
|
|
21
|
-
"@auth/drizzle-adapter": "^1.11.
|
|
22
|
-
"@hookform/resolvers": "^
|
|
23
|
-
"@neondatabase/serverless": "^1.0.
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"@trpc/
|
|
28
|
-
"
|
|
20
|
+
"@ai-sdk/openai": "^3.0.21",
|
|
21
|
+
"@auth/drizzle-adapter": "^1.11.1",
|
|
22
|
+
"@hookform/resolvers": "^5.2.2",
|
|
23
|
+
"@neondatabase/serverless": "^1.0.2",
|
|
24
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
25
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
26
|
+
"@tanstack/react-query": "^5.90.20",
|
|
27
|
+
"@trpc/client": "^11.8.1",
|
|
28
|
+
"@trpc/react-query": "^11.8.1",
|
|
29
|
+
"@trpc/server": "^11.8.1",
|
|
30
|
+
"ai": "^6.0.57",
|
|
31
|
+
"class-variance-authority": "^0.7.1",
|
|
29
32
|
"clsx": "^2.1.1",
|
|
30
|
-
"drizzle-orm": "^0.45.
|
|
33
|
+
"drizzle-orm": "^0.45.1",
|
|
31
34
|
"lucide-react": "^0.563.0",
|
|
32
|
-
"next": "^16.
|
|
33
|
-
"next-auth": "
|
|
34
|
-
"
|
|
35
|
-
"react
|
|
36
|
-
"react-
|
|
35
|
+
"next": "^16.1.5",
|
|
36
|
+
"next-auth": "5.0.0-beta.30",
|
|
37
|
+
"next-themes": "^0.4.6",
|
|
38
|
+
"react": "^19.2.4",
|
|
39
|
+
"react-dom": "^19.2.4",
|
|
40
|
+
"react-hook-form": "^7.71.1",
|
|
41
|
+
"sonner": "^2.0.7",
|
|
37
42
|
"superjson": "^2.2.6",
|
|
38
43
|
"tailwind-merge": "^3.4.0",
|
|
39
|
-
"zod": "^3.
|
|
44
|
+
"zod": "^4.3.6",
|
|
40
45
|
"zustand": "^5.0.10"
|
|
41
46
|
},
|
|
42
47
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@testing-library/jest-dom": "^6.9.
|
|
46
|
-
"@testing-library/react": "^16.3.
|
|
47
|
-
"@types/node": "^
|
|
48
|
-
"@types/react": "^19.2.
|
|
49
|
-
"@types/react-dom": "^19.2.
|
|
50
|
-
"@vitejs/plugin-react": "^
|
|
51
|
-
"drizzle-kit": "^0.31.
|
|
52
|
-
"eslint": "^9.39.
|
|
53
|
-
"eslint-config-next": "^16.
|
|
48
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
49
|
+
"@tanstack/react-query-devtools": "^5.91.2",
|
|
50
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
51
|
+
"@testing-library/react": "^16.3.2",
|
|
52
|
+
"@types/node": "^25.0.10",
|
|
53
|
+
"@types/react": "^19.2.10",
|
|
54
|
+
"@types/react-dom": "^19.2.3",
|
|
55
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
56
|
+
"drizzle-kit": "^0.31.8",
|
|
57
|
+
"eslint": "^9.39.2",
|
|
58
|
+
"eslint-config-next": "^16.1.5",
|
|
54
59
|
"jsdom": "^27.4.0",
|
|
55
|
-
"postcss": "^8.5.
|
|
56
|
-
"prettier": "^3.8.
|
|
57
|
-
"prettier-plugin-tailwindcss": "^0.7.
|
|
58
|
-
"tailwindcss": "^4.1.
|
|
59
|
-
"
|
|
60
|
-
"
|
|
60
|
+
"postcss": "^8.5.6",
|
|
61
|
+
"prettier": "^3.8.1",
|
|
62
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
63
|
+
"tailwindcss": "^4.1.18",
|
|
64
|
+
"tw-animate-css": "^1.4.0",
|
|
65
|
+
"typescript": "^5.9.3",
|
|
66
|
+
"vitest": "^4.0.18"
|
|
61
67
|
}
|
|
62
68
|
}
|
package/template/app/layout.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import type { Metadata } from 'next'
|
|
|
2
2
|
import { Inter } from 'next/font/google'
|
|
3
3
|
import './globals.css'
|
|
4
4
|
import { Providers } from './providers'
|
|
5
|
-
import { Toaster } from '@/components/ui/
|
|
5
|
+
import { Toaster } from '@/components/ui/sonner'
|
|
6
6
|
|
|
7
7
|
const inter = Inter({
|
|
8
8
|
subsets: ['latin'],
|
package/template/lib/utils.ts
CHANGED
package/template/tsconfig.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "ES2017",
|
|
4
|
-
"lib": [
|
|
4
|
+
"lib": [
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.iterable",
|
|
7
|
+
"esnext"
|
|
8
|
+
],
|
|
5
9
|
"allowJs": true,
|
|
6
10
|
"skipLibCheck": true,
|
|
7
11
|
"strict": true,
|
|
@@ -11,7 +15,7 @@
|
|
|
11
15
|
"moduleResolution": "bundler",
|
|
12
16
|
"resolveJsonModule": true,
|
|
13
17
|
"isolatedModules": true,
|
|
14
|
-
"jsx": "
|
|
18
|
+
"jsx": "react-jsx",
|
|
15
19
|
"incremental": true,
|
|
16
20
|
"plugins": [
|
|
17
21
|
{
|
|
@@ -19,9 +23,19 @@
|
|
|
19
23
|
}
|
|
20
24
|
],
|
|
21
25
|
"paths": {
|
|
22
|
-
"@/*": [
|
|
26
|
+
"@/*": [
|
|
27
|
+
"./*"
|
|
28
|
+
]
|
|
23
29
|
}
|
|
24
30
|
},
|
|
25
|
-
"include": [
|
|
26
|
-
|
|
31
|
+
"include": [
|
|
32
|
+
"next-env.d.ts",
|
|
33
|
+
"**/*.ts",
|
|
34
|
+
"**/*.tsx",
|
|
35
|
+
".next/types/**/*.ts",
|
|
36
|
+
".next/dev/types/**/*.ts"
|
|
37
|
+
],
|
|
38
|
+
"exclude": [
|
|
39
|
+
"node_modules"
|
|
40
|
+
]
|
|
27
41
|
}
|