create-waygraph 0.0.1 → 0.0.3

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 CHANGED
@@ -1,7 +1,12 @@
1
1
  # create-waygraph
2
2
 
3
- Scaffolds a new [waygraph](https://github.com/deviate-dv8/waygraph) project - one fixed
4
- shape, no prompts, no template picker.
3
+ Scaffolds a new [waygraph](https://github.com/deviate-dv8/waygraph) **offline** project -
4
+ one fixed shape, no prompts, no template picker.
5
+
6
+ This is the scaffold command linked from
7
+ [waygraph GitHub Pages](https://deviate-dv8.github.io/waygraph/) (`npx create-waygraph`).
8
+ Same template as `npx waygraph init` (waygraph >= 0.7.5). For a live saucedemo walkthrough
9
+ without creating a folder in your cwd, use `npx waygraph try demo` instead.
5
10
 
6
11
  ```bash
7
12
  npx create-waygraph my-project
@@ -32,3 +37,16 @@ my-project/
32
37
  Ships as its own package rather than a `waygraph init` subcommand, so consuming `waygraph`
33
38
  at runtime never pulls in scaffolding code - `npx create-waygraph` resolves and runs without
34
39
  adding anything to your own `node_modules`.
40
+
41
+ ## Consumer layout (App Router projects)
42
+
43
+ The minimal scaffold above is intentionally tiny (one block, no route tree). When the target
44
+ app has real Next.js routes, **block folders mirror `app/` page routes**:
45
+
46
+ - URL `/` -> nav at namespace root (`zsign-web/` or `pia-web/`), not `landing/` or `root/`
47
+ - Route groups `(auth)` / `(app)` vanish from folder names
48
+ - Folders with no `page.tsx` are grouping only - no NAV.md, no nav block
49
+ - Sidebar / layout chrome -> `shared/chrome/`, not a parallel `shell/nav/*` family
50
+
51
+ Full contract: `WAYGRAPH-CONSUMER-CONVENTION.md` in your mesh
52
+ (`.sm/seats/_shared/` on zsign/pia). Engine API: package `waygraph` README + WAYGRAPH-HANDOUT.
@@ -27,12 +27,19 @@ fs.cpSync(templatesDir, targetDir, { recursive: true });
27
27
  fs.renameSync(path.join(targetDir, "gitignore"), path.join(targetDir, ".gitignore"));
28
28
 
29
29
  const packageJsonPath = path.join(targetDir, "package.json");
30
- const packageJson = fs.readFileSync(packageJsonPath, "utf8").replace("__PROJECT_NAME__", projectName);
30
+ const packageJson = fs.readFileSync(packageJsonPath, "utf8").replaceAll("__PROJECT_NAME__", path.basename(targetDir));
31
31
  fs.writeFileSync(packageJsonPath, packageJson);
32
32
 
33
- console.log(`Scaffolded ${projectName}/`);
33
+ console.log(`Scaffolded ${path.basename(targetDir)}/`);
34
34
  console.log("");
35
35
  console.log(` cd ${projectName}`);
36
36
  console.log(" npm install");
37
37
  console.log(" npx playwright install chromium");
38
38
  console.log(" npm test");
39
+ console.log(" npx waygraph list");
40
+ console.log(" npx waygraph check");
41
+ console.log(" npx waygraph auto # headed panel");
42
+ console.log(" npx waygraph demo src/flows/example.flow.ts");
43
+ console.log("");
44
+ console.log("(Same offline scaffold as: npx waygraph init <name> - waygraph >= 0.10.6.)");
45
+ console.log("(Live saucedemo: npx waygraph try auto | try demo - temp dir, not a scaffold.)");
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "create-waygraph",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Scaffold a new waygraph project - package.json, tsconfig, playwright.config, and one working example flow.",
5
+ "license": "MIT",
5
6
  "type": "module",
6
7
  "bin": {
7
8
  "create-waygraph": "bin/create-waygraph.js"
@@ -2,3 +2,4 @@ node_modules/
2
2
  dist/
3
3
  test-results/
4
4
  playwright-report/
5
+ .waygraph-videos/
@@ -6,11 +6,19 @@
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
8
8
  "test": "playwright test",
9
- "flows": "waygraph list .",
10
- "nav": "waygraph nav ."
9
+ "list": "waygraph list",
10
+ "check": "waygraph check",
11
+ "auto": "waygraph auto",
12
+ "auto:cli": "waygraph auto --cli",
13
+ "demo": "waygraph demo src/flows/example.flow.ts",
14
+ "run": "waygraph run src/flows/example.flow.ts",
15
+ "graph": "waygraph graph"
16
+ },
17
+ "waygraph": {
18
+ "baseUrl": "https://example.com"
11
19
  },
12
20
  "dependencies": {
13
- "waygraph": "^0.1.0"
21
+ "waygraph": "^0.10.6"
14
22
  },
15
23
  "devDependencies": {
16
24
  "@playwright/test": "^1.55.0",
@@ -6,9 +6,6 @@ export default defineConfig({
6
6
  reporter: "list",
7
7
  use: {
8
8
  launchOptions: {
9
- // If CHROME_PATH/CHROMIUM_PATH is set (e.g. a Flatpak/system Chromium),
10
- // use it instead of downloading Playwright's own bundled binary.
11
- // Falls through to Playwright's default when unset - safe either way.
12
9
  executablePath: process.env.CHROME_PATH || process.env.CHROMIUM_PATH,
13
10
  },
14
11
  },