ai-forge-cli 0.1.3 → 0.1.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/dist/index.js +1 -1
- package/dist/{init-VYOLCRGL.js → init-ZLVAQOUZ.js} +5 -6
- package/dist/templates/init/package.json.hbs +11 -8
- package/{templates/init/app → dist/templates/init/src}/client.tsx.hbs +1 -1
- package/{templates/init/app → dist/templates/init/src}/router.tsx.hbs +1 -1
- package/{templates/init/app → dist/templates/init/src}/routes/__root.tsx.hbs +5 -6
- package/dist/templates/init/{app → src}/routes/index.tsx.hbs +2 -2
- package/{templates/init/app/ssr.tsx.hbs → dist/templates/init/src/server.tsx.hbs} +1 -4
- package/package.json +6 -6
- package/templates/init/package.json.hbs +11 -8
- package/{dist/templates/init/app → templates/init/src}/client.tsx.hbs +1 -1
- package/{dist/templates/init/app → templates/init/src}/router.tsx.hbs +1 -1
- package/{dist/templates/init/app → templates/init/src}/routes/__root.tsx.hbs +5 -6
- package/templates/init/{app → src}/routes/index.tsx.hbs +2 -2
- package/{dist/templates/init/app/ssr.tsx.hbs → templates/init/src/server.tsx.hbs} +1 -4
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var main = defineCommand({
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
subCommands: {
|
|
22
|
-
init: () => import("./init-
|
|
22
|
+
init: () => import("./init-ZLVAQOUZ.js").then((m) => m.default),
|
|
23
23
|
"add:feature": () => import("./add-feature-YXWSRIVE.js").then((m) => m.default),
|
|
24
24
|
check: () => import("./check-RCJRXIU5.js").then((m) => m.default),
|
|
25
25
|
version: () => import("./version-VO3LHLDO.js").then((m) => m.default)
|
|
@@ -47,13 +47,12 @@ var init_default = defineCommand({
|
|
|
47
47
|
{ templatePath: "init/tailwind.config.ts.hbs", destPath: join(projectDir, "tailwind.config.ts") },
|
|
48
48
|
{ templatePath: "init/postcss.config.js.hbs", destPath: join(projectDir, "postcss.config.js") },
|
|
49
49
|
{ templatePath: "init/vite.config.ts.hbs", destPath: join(projectDir, "vite.config.ts") },
|
|
50
|
-
// App files
|
|
51
|
-
{ templatePath: "init/app/client.tsx.hbs", destPath: join(projectDir, "app/client.tsx") },
|
|
52
|
-
{ templatePath: "init/app/ssr.tsx.hbs", destPath: join(projectDir, "app/ssr.tsx") },
|
|
53
|
-
{ templatePath: "init/app/router.tsx.hbs", destPath: join(projectDir, "app/router.tsx") },
|
|
54
|
-
{ templatePath: "init/app/routes/__root.tsx.hbs", destPath: join(projectDir, "app/routes/__root.tsx") },
|
|
55
|
-
{ templatePath: "init/app/routes/index.tsx.hbs", destPath: join(projectDir, "app/routes/index.tsx") },
|
|
56
50
|
// Src files
|
|
51
|
+
{ templatePath: "init/src/router.tsx.hbs", destPath: join(projectDir, "src/router.tsx") },
|
|
52
|
+
{ templatePath: "init/src/client.tsx.hbs", destPath: join(projectDir, "src/client.tsx") },
|
|
53
|
+
{ templatePath: "init/src/server.tsx.hbs", destPath: join(projectDir, "src/server.tsx") },
|
|
54
|
+
{ templatePath: "init/src/routes/__root.tsx.hbs", destPath: join(projectDir, "src/routes/__root.tsx") },
|
|
55
|
+
{ templatePath: "init/src/routes/index.tsx.hbs", destPath: join(projectDir, "src/routes/index.tsx") },
|
|
57
56
|
{ templatePath: "init/src/lib/cn.ts.hbs", destPath: join(projectDir, "src/lib/cn.ts") },
|
|
58
57
|
{ templatePath: "init/src/providers/index.tsx.hbs", destPath: join(projectDir, "src/providers/index.tsx") },
|
|
59
58
|
// Convex files
|
|
@@ -12,25 +12,28 @@
|
|
|
12
12
|
"format": "biome format . --write"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tanstack/react-router": "^1.
|
|
16
|
-
"@tanstack/react-start": "^1.
|
|
17
|
-
"convex": "^1.
|
|
15
|
+
"@tanstack/react-router": "^1.149.3",
|
|
16
|
+
"@tanstack/react-start": "^1.149.4",
|
|
17
|
+
"convex": "^1.31.4",
|
|
18
18
|
"react": "^19.0.0",
|
|
19
19
|
"react-dom": "^19.0.0",
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
|
-
"tailwind-merge": "^
|
|
21
|
+
"tailwind-merge": "^3.4.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@biomejs/biome": "^1.9.4",
|
|
25
25
|
"@types/node": "^22.10.0",
|
|
26
26
|
"@types/react": "^19.0.0",
|
|
27
27
|
"@types/react-dom": "^19.0.0",
|
|
28
|
-
"@vitejs/plugin-react": "^
|
|
28
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
29
29
|
"autoprefixer": "^10.4.20",
|
|
30
|
-
"postcss": "^8.
|
|
30
|
+
"postcss": "^8.5.0",
|
|
31
31
|
"tailwindcss": "^3.4.17",
|
|
32
|
-
"typescript": "^5.
|
|
33
|
-
"vite": "^
|
|
32
|
+
"typescript": "^5.9.3",
|
|
33
|
+
"vite": "^7.3.1",
|
|
34
34
|
"vite-tsconfig-paths": "^5.1.4"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22"
|
|
35
38
|
}
|
|
36
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Outlet,
|
|
2
|
-
import { Meta, Scripts } from "@tanstack/start";
|
|
3
|
-
import { Providers } from "
|
|
1
|
+
import { Outlet, createRootRoute } from "@tanstack/react-router";
|
|
2
|
+
import { Meta, Scripts } from "@tanstack/react-start";
|
|
3
|
+
import { Providers } from "../providers";
|
|
4
|
+
import "../styles.css";
|
|
4
5
|
|
|
5
6
|
export const Route = createRootRoute({
|
|
6
7
|
head: () => ({
|
|
7
8
|
meta: [
|
|
8
9
|
{ charSet: "utf-8" },
|
|
9
10
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
10
|
-
{ title: "{{
|
|
11
|
+
{ title: "{{name}}" },
|
|
11
12
|
],
|
|
12
|
-
links: [{ rel: "stylesheet", href: "/styles.css" }],
|
|
13
13
|
}),
|
|
14
14
|
component: RootComponent,
|
|
15
15
|
});
|
|
@@ -30,7 +30,6 @@ function RootDocument({ children }: { children: React.ReactNode }) {
|
|
|
30
30
|
</head>
|
|
31
31
|
<body>
|
|
32
32
|
<Providers>{children}</Providers>
|
|
33
|
-
<ScrollRestoration />
|
|
34
33
|
<Scripts />
|
|
35
34
|
</body>
|
|
36
35
|
</html>
|
|
@@ -8,9 +8,9 @@ function Home() {
|
|
|
8
8
|
return (
|
|
9
9
|
<div className="min-h-screen flex items-center justify-center">
|
|
10
10
|
<div className="text-center">
|
|
11
|
-
<h1 className="text-4xl font-bold mb-4">{{
|
|
11
|
+
<h1 className="text-4xl font-bold mb-4">{{name}}</h1>
|
|
12
12
|
<p className="text-gray-600">
|
|
13
|
-
|
|
13
|
+
Built with TanStack Start + Convex + Tailwind
|
|
14
14
|
</p>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createStartHandler,
|
|
3
|
-
defaultStreamHandler,
|
|
4
|
-
} from "@tanstack/react-start/server";
|
|
1
|
+
import { createStartHandler, defaultStreamHandler } from "@tanstack/react-start/server";
|
|
5
2
|
import { getRouterManifest } from "@tanstack/react-start/router-manifest";
|
|
6
3
|
import { createRouter } from "./router";
|
|
7
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-forge-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "TypeScript stack scaffolding & enforcement CLI for TanStack Start + Convex",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"picocolors": "^1.1.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/node": "^
|
|
50
|
+
"@types/node": "^25.0.8",
|
|
51
51
|
"tsx": "^4.19.2",
|
|
52
|
-
"tsup": "^8.
|
|
53
|
-
"typescript": "^5.
|
|
54
|
-
"vitest": "^
|
|
52
|
+
"tsup": "^8.5.1",
|
|
53
|
+
"typescript": "^5.9.3",
|
|
54
|
+
"vitest": "^4.0.17"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
57
|
+
"node": ">=22"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -12,25 +12,28 @@
|
|
|
12
12
|
"format": "biome format . --write"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tanstack/react-router": "^1.
|
|
16
|
-
"@tanstack/react-start": "^1.
|
|
17
|
-
"convex": "^1.
|
|
15
|
+
"@tanstack/react-router": "^1.149.3",
|
|
16
|
+
"@tanstack/react-start": "^1.149.4",
|
|
17
|
+
"convex": "^1.31.4",
|
|
18
18
|
"react": "^19.0.0",
|
|
19
19
|
"react-dom": "^19.0.0",
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
|
-
"tailwind-merge": "^
|
|
21
|
+
"tailwind-merge": "^3.4.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@biomejs/biome": "^1.9.4",
|
|
25
25
|
"@types/node": "^22.10.0",
|
|
26
26
|
"@types/react": "^19.0.0",
|
|
27
27
|
"@types/react-dom": "^19.0.0",
|
|
28
|
-
"@vitejs/plugin-react": "^
|
|
28
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
29
29
|
"autoprefixer": "^10.4.20",
|
|
30
|
-
"postcss": "^8.
|
|
30
|
+
"postcss": "^8.5.0",
|
|
31
31
|
"tailwindcss": "^3.4.17",
|
|
32
|
-
"typescript": "^5.
|
|
33
|
-
"vite": "^
|
|
32
|
+
"typescript": "^5.9.3",
|
|
33
|
+
"vite": "^7.3.1",
|
|
34
34
|
"vite-tsconfig-paths": "^5.1.4"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22"
|
|
35
38
|
}
|
|
36
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Outlet,
|
|
2
|
-
import { Meta, Scripts } from "@tanstack/start";
|
|
3
|
-
import { Providers } from "
|
|
1
|
+
import { Outlet, createRootRoute } from "@tanstack/react-router";
|
|
2
|
+
import { Meta, Scripts } from "@tanstack/react-start";
|
|
3
|
+
import { Providers } from "../providers";
|
|
4
|
+
import "../styles.css";
|
|
4
5
|
|
|
5
6
|
export const Route = createRootRoute({
|
|
6
7
|
head: () => ({
|
|
7
8
|
meta: [
|
|
8
9
|
{ charSet: "utf-8" },
|
|
9
10
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
10
|
-
{ title: "{{
|
|
11
|
+
{ title: "{{name}}" },
|
|
11
12
|
],
|
|
12
|
-
links: [{ rel: "stylesheet", href: "/styles.css" }],
|
|
13
13
|
}),
|
|
14
14
|
component: RootComponent,
|
|
15
15
|
});
|
|
@@ -30,7 +30,6 @@ function RootDocument({ children }: { children: React.ReactNode }) {
|
|
|
30
30
|
</head>
|
|
31
31
|
<body>
|
|
32
32
|
<Providers>{children}</Providers>
|
|
33
|
-
<ScrollRestoration />
|
|
34
33
|
<Scripts />
|
|
35
34
|
</body>
|
|
36
35
|
</html>
|
|
@@ -8,9 +8,9 @@ function Home() {
|
|
|
8
8
|
return (
|
|
9
9
|
<div className="min-h-screen flex items-center justify-center">
|
|
10
10
|
<div className="text-center">
|
|
11
|
-
<h1 className="text-4xl font-bold mb-4">{{
|
|
11
|
+
<h1 className="text-4xl font-bold mb-4">{{name}}</h1>
|
|
12
12
|
<p className="text-gray-600">
|
|
13
|
-
|
|
13
|
+
Built with TanStack Start + Convex + Tailwind
|
|
14
14
|
</p>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createStartHandler,
|
|
3
|
-
defaultStreamHandler,
|
|
4
|
-
} from "@tanstack/react-start/server";
|
|
1
|
+
import { createStartHandler, defaultStreamHandler } from "@tanstack/react-start/server";
|
|
5
2
|
import { getRouterManifest } from "@tanstack/react-start/router-manifest";
|
|
6
3
|
import { createRouter } from "./router";
|
|
7
4
|
|