@nomiedge/cli
v0.2.0
Published
nomiedge init/add/diff — a registry-driven CLI for adopting and extending Nomiedge Design Language.
Readme
@nomiedge/cli
nomiedge init and nomiedge add — the command-line front door to Nomiedge Design Language.
Usage
npx nomiedge init # scaffold the Tailwind preset, tokens, fonts, theme provider
npx nomiedge add button card # add components (package mode by default)
npx nomiedge add dialog --mode=source # vendor the source + its dependencies instead
npx nomiedge add icon:download # add a single icon
npx nomiedge diff # report local vs. registry drift for source-mode installsHow add resolves what to install
Every name add accepts, and everything it installs alongside it, comes from @nomiedge/registry
— never a list hardcoded in this package. --mode=package installs the owning @nomiedge/*
package; --mode=source copies the real component/icon/chart source directly into your project
(reading it from the installed package's own src/, which is published for exactly this reason)
and still installs whatever real npm packages that source's own imports need (e.g. @nomiedge/motion,
@nomiedge/tokens).
nomiedge.json
Written by init, read by add/diff. Records your chosen default mode, detected paths, package
manager, and (for source-mode installs) a content hash used by diff to tell "you customized this"
apart from "the design system changed upstream since you installed it."
