inventive-ui 0.0.9 → 0.0.11
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 +6 -6
- package/dist/index.js +369 -1087
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/assets.config.defaults.json +0 -28
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Inventive UI builds utility CSS at **dev/build time** (Node), then injects it in
|
|
|
34
34
|
| Webpack | `plugins: [...inventiveUiWebpack()]` + `html-webpack-plugin` in the app |
|
|
35
35
|
| Next.js | `export default withIUI({ ... })` + root `<IUIRegistry>` |
|
|
36
36
|
|
|
37
|
-
`
|
|
37
|
+
`theme.config.ts` can include an optional compile-first `build` block. **`scanDirs` / `scanPackages` are not required** — Framework defaults to `["src", ".iui"]` and `["@inventive-ui/components"]`.
|
|
38
38
|
|
|
39
39
|
Documented init toggles (`packageSafelist`, `includeShadeMatrix`, theme/palette/arbitrary flags, etc.) are listed in Framework `docs/01-compile-first-guide.md` for the docs site.
|
|
40
40
|
|
|
@@ -175,7 +175,7 @@ Initialize an Inventive UI project in the current directory (or workspace root w
|
|
|
175
175
|
- Writes project `.npmrc` (scope line only) and updates `.gitignore`
|
|
176
176
|
- Ensures React 19.x or Vite 6.x+ is present (installs if missing)
|
|
177
177
|
- Installs `@inventive-ui/framework` and `@inventive-ui/components`
|
|
178
|
-
- Generates `
|
|
178
|
+
- Generates `theme.config.ts` (with compile-first `build` block), `component.config.ts`, `assets.config.json`, and Vite/TS configs as needed
|
|
179
179
|
- Creates `.iui/project.json`, component/package manifests, and the slot registry
|
|
180
180
|
|
|
181
181
|
| Option | Description |
|
|
@@ -357,7 +357,7 @@ Run a multi-point health check. Read-only by default; exits with code `1` if any
|
|
|
357
357
|
- Project initialized (`.iui/project.json`)
|
|
358
358
|
- `@inventive-ui/framework` and `@inventive-ui/components` installed
|
|
359
359
|
- React 19.x or Vite 6.x (and matching `react-dom`)
|
|
360
|
-
- **Three-config tiers:** `
|
|
360
|
+
- **Three-config tiers:** `theme.config.ts` must not import `assets.config.json` or contain asset/component keys; `assets.config.json` schema + `globalIcons`; `component.config.ts` must not contain theme keys
|
|
361
361
|
- Component and asset package counts
|
|
362
362
|
- Slot registry integrity
|
|
363
363
|
- Package compatibility between framework and components
|
|
@@ -371,7 +371,7 @@ In monorepos, doctors every app with a `.iui/` folder when run from the workspac
|
|
|
371
371
|
|
|
372
372
|
| Option | Description |
|
|
373
373
|
| ------ | ----------- |
|
|
374
|
-
| `--fix` | Apply safe fixes (strip assets from `
|
|
374
|
+
| `--fix` | Apply safe fixes (strip assets from `theme.config.ts`, patch build block, repair slots, install TypeScript for config validation) |
|
|
375
375
|
| `--config-only` | Config tiers + slots + compile-first only — no auth/registry. Use in CI and pre-commit hooks |
|
|
376
376
|
|
|
377
377
|
```bash
|
|
@@ -556,8 +556,8 @@ After `iui init`, the CLI manages:
|
|
|
556
556
|
|
|
557
557
|
| Path | Purpose |
|
|
558
558
|
| ---- | ------- |
|
|
559
|
-
| `
|
|
560
|
-
| `component.config.ts` | `
|
|
559
|
+
| `theme.config.ts` | `IUIThemeConfig` — theme, states, core, compile-first `build` block (no assets import) |
|
|
560
|
+
| `component.config.ts` | `ComponentConfig` (`@inventive-ui/components/config`) — optional per-component defaults |
|
|
561
561
|
| `assets.config.json` | `IUIAssetsConfig` — libraries, `globalIcons`, `@alias` maps, binding/preload |
|
|
562
562
|
| `.iui/project.json` | Project ID, license, repo metadata |
|
|
563
563
|
| `.iui/components.json` | Installed component versions |
|