omit-design-cli
The entry points for the omit-design dev loop. Use these three commands — do not stitch together your own shell substitute.
omit-design init <name>
Scaffold a new omit-design project.
- Copies the init scaffold into
./<name>/. - Already includes:
app/(Vite shell),design/welcome.tsx(demo),mock/,preset/,.claude/skills/(bundled — no need fornpx skills add),eslint.config.js,vite.config.ts,tsconfig.json,CLAUDE.md,README.md. - Next:
cd <name> && npm install && npm run dev.
Flags:
--force: overwrite even if the target directory exists and is non-empty (use with care).
omit-design dev
Start the local Vite dev server.
- Default port 5173.
- Spawns
npx vite, inheriting stdio. Ctrl+Cto exit.
Flags:
--port <n>: change port.--host: expose on the LAN (use sparingly — designs may be visible to anyone on the same network).
omit-design lint
Compliance check. Produces AI-friendly structured output.
- Runs ESLint over
design/**/*.tsx(override with--glob). - Output format:
<emoji> [<rule-id>] <file>:<line>:<col> — <sample> → <hint>. - Exit code: violations → 1, clean → 0.
Flags:
--json: emit raw ESLint JSON (for tool consumption).--glob <pattern>: override the default glob.
Counter-examples
- Running
eslint design/...and parsing the output yourself — useomit-design lint. - Writing a
grepself-check forstyle={{—no-design-literalalready covers this. - Hard-coding the
devport in a README — users override it via--port.
Source: leefanv/omit-design — distributed by TomeVault.