robodev 0.15.0 → 0.17.0
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/package.json +1 -1
- package/src/emit-starter.test.ts +25 -0
- package/templates/auth-chat/apps/fe/package.json +3 -1
- package/templates/auth-chat/package.json +1 -1
- package/templates/backend/package.json +1 -1
- package/templates/empty/package.json +1 -1
- package/templates/space/apps/fe/package.json +3 -1
- package/templates/space/package.json +1 -1
package/package.json
CHANGED
package/src/emit-starter.test.ts
CHANGED
|
@@ -24,11 +24,15 @@ test("emitStarter rewrites root package.json name only", async () => {
|
|
|
24
24
|
name: string;
|
|
25
25
|
dependencies?: Record<string, string>;
|
|
26
26
|
devDependencies?: Record<string, string>;
|
|
27
|
+
scripts?: { build?: string };
|
|
27
28
|
};
|
|
28
29
|
assert.equal(rootPkg.name, "orbit-app");
|
|
29
30
|
assert.equal(fePkg.name, "fe");
|
|
30
31
|
assert.equal(fePkg.dependencies?.robodev, undefined);
|
|
31
32
|
assert.equal(fePkg.devDependencies?.robodev, undefined);
|
|
33
|
+
assert.equal(fePkg.dependencies?.["@hookform/resolvers"], "^5.2.2");
|
|
34
|
+
assert.equal(fePkg.dependencies?.["react-hook-form"], "^7.65.0");
|
|
35
|
+
assert.match(fePkg.scripts?.build ?? "", /openapi:gen.*vite build/);
|
|
32
36
|
const overview = await readFile(join(dest, ".rulesync/rules/project-overview.md"), "utf8");
|
|
33
37
|
assert.match(overview, /^# Space starter AI rules/m);
|
|
34
38
|
const readme = await readFile(join(dest, "README.md"), "utf8");
|
|
@@ -38,6 +42,27 @@ test("emitStarter rewrites root package.json name only", async () => {
|
|
|
38
42
|
}
|
|
39
43
|
});
|
|
40
44
|
|
|
45
|
+
test("emitStarter auth-chat FE build runs openapi:gen before vite", async () => {
|
|
46
|
+
const dest = await mkdtemp(join(tmpdir(), "rd-emit-"));
|
|
47
|
+
try {
|
|
48
|
+
await emitStarter(join(cliRoot(), "..", "starters", "auth-chat"), dest, {
|
|
49
|
+
name: "Relay",
|
|
50
|
+
packageName: "relay-app",
|
|
51
|
+
title: "Auth chat",
|
|
52
|
+
versions,
|
|
53
|
+
});
|
|
54
|
+
const fePkg = JSON.parse(await readFile(join(dest, "apps/fe/package.json"), "utf8")) as {
|
|
55
|
+
dependencies?: Record<string, string>;
|
|
56
|
+
scripts?: { build?: string };
|
|
57
|
+
};
|
|
58
|
+
assert.equal(fePkg.dependencies?.["@hookform/resolvers"], "^5.2.2");
|
|
59
|
+
assert.equal(fePkg.dependencies?.["react-hook-form"], "^7.65.0");
|
|
60
|
+
assert.match(fePkg.scripts?.build ?? "", /openapi:gen.*vite build/);
|
|
61
|
+
} finally {
|
|
62
|
+
await rm(dest, { recursive: true, force: true });
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
41
66
|
test("collectFiles for auth-chat starter is Tiny APIs without apps/fe", async () => {
|
|
42
67
|
const files = await collectFiles(join(cliRoot(), "..", "starters", "auth-chat"));
|
|
43
68
|
const paths = new Set(files.map((file) => file.path));
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "bunx --bun vite",
|
|
9
|
-
"build": "bunx --bun vite build",
|
|
9
|
+
"build": "bun run openapi:gen && bunx --bun vite build",
|
|
10
10
|
"clean": "rimraf dist src/openapi",
|
|
11
11
|
"lint": "oxlint --type-aware . ../../api ../../database.ts --fix",
|
|
12
12
|
"lint:check": "oxlint --type-aware . ../../api ../../database.ts --quiet",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@casl/react": "^5.0.1",
|
|
24
24
|
"@fontsource-variable/geist": "^5.2.8",
|
|
25
25
|
"@fontsource-variable/inter": "^5.2.8",
|
|
26
|
+
"@hookform/resolvers": "^5.2.2",
|
|
26
27
|
"@internationalized/date": "^3.11.0",
|
|
27
28
|
"@povio/openapi-codegen-cli": "3.1.0",
|
|
28
29
|
"@povio/resolve-config": "1.3.0",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"react-aria": "^3.46.0",
|
|
50
51
|
"react-aria-components": "^1.15.1",
|
|
51
52
|
"react-dom": "19.2.4",
|
|
53
|
+
"react-hook-form": "^7.65.0",
|
|
52
54
|
"react-i18next": "^16.5.1",
|
|
53
55
|
"web-vitals": "^5.1.0",
|
|
54
56
|
"zod": "^4.4.3",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "bunx --bun vite",
|
|
9
|
-
"build": "bunx --bun vite build",
|
|
9
|
+
"build": "bun run openapi:gen && bunx --bun vite build",
|
|
10
10
|
"clean": "rimraf dist src/openapi",
|
|
11
11
|
"lint": "oxlint --type-aware . ../../api ../../database.ts --fix",
|
|
12
12
|
"lint:check": "oxlint --type-aware . ../../api ../../database.ts --quiet",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@casl/react": "^5.0.1",
|
|
24
24
|
"@fontsource-variable/geist": "^5.2.8",
|
|
25
25
|
"@fontsource-variable/inter": "^5.2.8",
|
|
26
|
+
"@hookform/resolvers": "^5.2.2",
|
|
26
27
|
"@internationalized/date": "^3.11.0",
|
|
27
28
|
"@povio/openapi-codegen-cli": "3.1.0",
|
|
28
29
|
"@povio/resolve-config": "1.3.0",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"react-aria": "^3.46.0",
|
|
50
51
|
"react-aria-components": "^1.15.1",
|
|
51
52
|
"react-dom": "19.2.4",
|
|
53
|
+
"react-hook-form": "^7.65.0",
|
|
52
54
|
"react-i18next": "^16.5.1",
|
|
53
55
|
"web-vitals": "^5.1.0",
|
|
54
56
|
"zod": "^4.4.3",
|