@solexllc/usx-contracts 0.1.0
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 +12 -0
- package/dist/component-contracts.json +4415 -0
- package/package.json +29 -0
- package/src/contracts.js +4439 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Generated CMS contract manifest for USX.
|
|
2
|
+
|
|
3
|
+
This package has no authored source of its own: `src/contracts.js` is generated by `pnpm generate:contracts` (run from the repo root) from every component's `config.json` in `packages/usx-react/src/components/`. `pnpm build` (or this package's own `build` script) regenerates it and compiles `dist/component-contracts.json` for non-JS consumers (e.g. the SOLEX CMS).
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
- `src/contracts.js`: generated CMS contract manifest, keyed by component name — do not edit by hand
|
|
8
|
+
- `dist/component-contracts.json`: build output (plain JSON compile of `src/contracts.js`), gitignored
|
|
9
|
+
|
|
10
|
+
`pnpm validate:configs` (part of `pnpm test`) checks that `src/contracts.js` is current with every component's `config.json`.
|
|
11
|
+
|
|
12
|
+
See [solex-cms-overview.md](../../local-docs/solex-cms-overview.md) for the contract shape and how the CMS consumes it.
|