ai-forge-cli 0.1.0 → 0.1.2
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 +1 -1
- package/dist/index.js +5 -2
- package/dist/{init-GQA3WDXQ.js → init-VYOLCRGL.js} +3 -3
- package/dist/templates/init/app/client.tsx.hbs +1 -1
- package/dist/templates/init/app/ssr.tsx.hbs +2 -2
- package/dist/templates/init/package.json.hbs +8 -6
- package/dist/templates/init/vite.config.ts.hbs +11 -0
- package/package.json +1 -1
- package/templates/init/app/client.tsx.hbs +1 -1
- package/templates/init/app/ssr.tsx.hbs +2 -2
- package/templates/init/package.json.hbs +8 -6
- package/templates/init/vite.config.ts.hbs +11 -0
- package/dist/templates/init/app.config.ts.hbs +0 -8
- package/templates/init/app.config.ts.hbs +0 -8
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { defineCommand, runMain } from "citty";
|
|
5
|
+
import { createRequire } from "module";
|
|
6
|
+
var require2 = createRequire(import.meta.url);
|
|
7
|
+
var { version } = require2("../package.json");
|
|
5
8
|
var main = defineCommand({
|
|
6
9
|
meta: {
|
|
7
10
|
name: "forge",
|
|
8
|
-
version
|
|
11
|
+
version,
|
|
9
12
|
description: "TypeScript stack scaffolding & enforcement CLI"
|
|
10
13
|
},
|
|
11
14
|
subCommands: {
|
|
12
|
-
init: () => import("./init-
|
|
15
|
+
init: () => import("./init-VYOLCRGL.js").then((m) => m.default),
|
|
13
16
|
"add:feature": () => import("./add-feature-YXWSRIVE.js").then((m) => m.default),
|
|
14
17
|
check: () => import("./check-RCJRXIU5.js").then((m) => m.default)
|
|
15
18
|
}
|
|
@@ -46,7 +46,7 @@ var init_default = defineCommand({
|
|
|
46
46
|
{ templatePath: "init/biome.json.hbs", destPath: join(projectDir, "biome.json") },
|
|
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
|
-
{ templatePath: "init/
|
|
49
|
+
{ templatePath: "init/vite.config.ts.hbs", destPath: join(projectDir, "vite.config.ts") },
|
|
50
50
|
// App files
|
|
51
51
|
{ templatePath: "init/app/client.tsx.hbs", destPath: join(projectDir, "app/client.tsx") },
|
|
52
52
|
{ templatePath: "init/app/ssr.tsx.hbs", destPath: join(projectDir, "app/ssr.tsx") },
|
|
@@ -85,7 +85,7 @@ var init_default = defineCommand({
|
|
|
85
85
|
logger.success("Created src/styles.css");
|
|
86
86
|
const gitignore = `node_modules
|
|
87
87
|
dist
|
|
88
|
-
.
|
|
88
|
+
.output
|
|
89
89
|
.env
|
|
90
90
|
.env.local
|
|
91
91
|
`;
|
|
@@ -101,7 +101,7 @@ dist
|
|
|
101
101
|
logger.log(" Next steps:");
|
|
102
102
|
logger.log(` 1. ${pc.cyan(`cd ${name}`)}`);
|
|
103
103
|
logger.log(` 2. ${pc.cyan("pnpm install")}`);
|
|
104
|
-
logger.log(` 3. ${pc.cyan("npx convex
|
|
104
|
+
logger.log(` 3. ${pc.cyan("npx convex dev --once --configure=new")}`);
|
|
105
105
|
logger.log(` 4. ${pc.cyan("pnpm dlx shadcn@latest init")}`);
|
|
106
106
|
logger.log(` 5. ${pc.cyan("pnpm dev")}`);
|
|
107
107
|
logger.blank();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createStartHandler,
|
|
3
3
|
defaultStreamHandler,
|
|
4
|
-
} from "@tanstack/start/server";
|
|
5
|
-
import { getRouterManifest } from "@tanstack/start/router-manifest";
|
|
4
|
+
} from "@tanstack/react-start/server";
|
|
5
|
+
import { getRouterManifest } from "@tanstack/react-start/router-manifest";
|
|
6
6
|
import { createRouter } from "./router";
|
|
7
7
|
|
|
8
8
|
export default createStartHandler({
|
|
@@ -4,31 +4,33 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "
|
|
8
|
-
"build": "
|
|
9
|
-
"start": "
|
|
7
|
+
"dev": "vite dev",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"start": "node .output/server/index.mjs",
|
|
10
10
|
"lint": "biome check .",
|
|
11
11
|
"lint:fix": "biome check . --write",
|
|
12
12
|
"format": "biome format . --write"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tanstack/react-router": "^1.
|
|
16
|
-
"@tanstack/start": "^1.
|
|
15
|
+
"@tanstack/react-router": "^1.121.0",
|
|
16
|
+
"@tanstack/react-start": "^1.121.0",
|
|
17
17
|
"convex": "^1.17.4",
|
|
18
18
|
"react": "^19.0.0",
|
|
19
19
|
"react-dom": "^19.0.0",
|
|
20
|
-
"vinxi": "^0.5.1",
|
|
21
20
|
"clsx": "^2.1.1",
|
|
22
21
|
"tailwind-merge": "^2.6.0"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
25
24
|
"@biomejs/biome": "^1.9.4",
|
|
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": "^4.3.4",
|
|
28
29
|
"autoprefixer": "^10.4.20",
|
|
29
30
|
"postcss": "^8.4.49",
|
|
30
31
|
"tailwindcss": "^3.4.17",
|
|
31
32
|
"typescript": "^5.7.2",
|
|
33
|
+
"vite": "^6.0.0",
|
|
32
34
|
"vite-tsconfig-paths": "^5.1.4"
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import tsConfigPaths from "vite-tsconfig-paths";
|
|
3
|
+
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
4
|
+
import react from "@vitejs/plugin-react";
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
server: {
|
|
8
|
+
port: 3000,
|
|
9
|
+
},
|
|
10
|
+
plugins: [tsConfigPaths(), tanstackStart(), react()],
|
|
11
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createStartHandler,
|
|
3
3
|
defaultStreamHandler,
|
|
4
|
-
} from "@tanstack/start/server";
|
|
5
|
-
import { getRouterManifest } from "@tanstack/start/router-manifest";
|
|
4
|
+
} from "@tanstack/react-start/server";
|
|
5
|
+
import { getRouterManifest } from "@tanstack/react-start/router-manifest";
|
|
6
6
|
import { createRouter } from "./router";
|
|
7
7
|
|
|
8
8
|
export default createStartHandler({
|
|
@@ -4,31 +4,33 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "
|
|
8
|
-
"build": "
|
|
9
|
-
"start": "
|
|
7
|
+
"dev": "vite dev",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"start": "node .output/server/index.mjs",
|
|
10
10
|
"lint": "biome check .",
|
|
11
11
|
"lint:fix": "biome check . --write",
|
|
12
12
|
"format": "biome format . --write"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tanstack/react-router": "^1.
|
|
16
|
-
"@tanstack/start": "^1.
|
|
15
|
+
"@tanstack/react-router": "^1.121.0",
|
|
16
|
+
"@tanstack/react-start": "^1.121.0",
|
|
17
17
|
"convex": "^1.17.4",
|
|
18
18
|
"react": "^19.0.0",
|
|
19
19
|
"react-dom": "^19.0.0",
|
|
20
|
-
"vinxi": "^0.5.1",
|
|
21
20
|
"clsx": "^2.1.1",
|
|
22
21
|
"tailwind-merge": "^2.6.0"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
25
24
|
"@biomejs/biome": "^1.9.4",
|
|
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": "^4.3.4",
|
|
28
29
|
"autoprefixer": "^10.4.20",
|
|
29
30
|
"postcss": "^8.4.49",
|
|
30
31
|
"tailwindcss": "^3.4.17",
|
|
31
32
|
"typescript": "^5.7.2",
|
|
33
|
+
"vite": "^6.0.0",
|
|
32
34
|
"vite-tsconfig-paths": "^5.1.4"
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import tsConfigPaths from "vite-tsconfig-paths";
|
|
3
|
+
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
4
|
+
import react from "@vitejs/plugin-react";
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
server: {
|
|
8
|
+
port: 3000,
|
|
9
|
+
},
|
|
10
|
+
plugins: [tsConfigPaths(), tanstackStart(), react()],
|
|
11
|
+
});
|