element-web/scripts/design/run-element-web.mjs
David Langley 6286a75790 Designer agent, Figma URL workflow, Element Web dev server
- Add @designer Copilot agent with Figma URL parsing and MCP/CLI fallback
- Make fileKey optional on all Figma MCP tools (extract from pasted URLs)
- Add CLI fallback scripts (figma-file, figma-node, figma-components)
- Add run-element-web.mjs launcher and start:element-web script
- Update devcontainer to Node 24 image, forward port 8080 for Element Web
- Simplify setup guide (no FIGMA_FILE secret, 3-step onboarding)
- Update docs with Element Web prototyping instructions
2026-03-25 12:07:57 +00:00

19 lines
439 B
JavaScript

import { spawn } from "node:child_process";
import { repoRoot } from "./workspace-utils.mjs";
console.log("Starting Element Web dev server (http://localhost:8080)…");
const child = spawn("pnpm", ["--filter", "element-web", "start"], {
cwd: repoRoot,
stdio: "inherit",
});
child.on("exit", (code, signal) => {
if (signal) {
process.kill(process.pid, signal);
return;
}
process.exit(code ?? 0);
});