Simplify REA onboarding and app targeting

This commit is contained in:
morluto
2026-07-12 12:26:16 +08:00
parent 051b6db656
commit fc21c9a2d7
16 changed files with 608 additions and 367 deletions
+31
View File
@@ -0,0 +1,31 @@
import { readFile } from "node:fs/promises";
import { resolve } from "node:path";
import { describe, expect, it } from "vitest";
const readmes = [
"README.md",
"README_zh.md",
"README_ja.md",
"README_ko.md",
"README_ar.md",
] as const;
describe("localized README product facts", () => {
it.each(readmes)(
"keeps commands and requirements aligned in %s",
async (path) => {
const content = await readFile(resolve(path), "utf8");
expect(content).toContain("npx skills add morluto/rea");
expect(content).toContain("npx -y @morluto/rea setup --yes");
expect(content).toContain("npx -y @morluto/rea doctor");
expect(content).toContain('"args": ["-y", "@morluto/rea", "mcp"]');
expect(content).toContain("Node.js 22");
expect(content).toContain("macOS 12");
expect(content).toMatch(/\b42\b/u);
expect(content).toMatch(/\b31\b/u);
expect(content).toMatch(/\b8\b/u);
expect(content).toMatch(/\b3\b/u);
},
);
});