Setting up a project
Detects your framework, package manager & import alias before asking where components live.
| Option | |
|---|---|
--force | Replace an existing yummaui.config.mjs |
-y, --yes | Skip prompts & take the defaults |
Adding components
Copies one or more components in. With no names, it opens a list to search & pick from.
| Option | |
|---|---|
-a, --all | Add every component |
--shape <name> | none, rounded or pill |
--overwrite | Replace files that already exist |
-y, --yes | Skip prompts & take the defaults |
It asks before installing what a component needs from npm, and offers the same Yumma CSS setup as init when it is missing.
Listing components
Prints every component.
Removing unused components
Finds component files nothing in your project reaches.
| Option | |
|---|---|
--write | Delete, instead of only listing |
-y, --yes | Skip the confirmation |
Configuration file
yummaui.config.mjs
| Field | Meaning |
|---|---|
componentsDir | Where components are written, relative to the project root |
alias | The import prefix for that directory, or null to use relative imports |
registry | Where components are fetched from |
shape | The shape add uses when --shape is not given |
Registry
The registry is static JSON published by this site.
Point registry at your own copy to serve components from somewhere else.