view-contracts 0.5.7 → 0.5.8
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 +11 -1
- package/cli-contract.yaml +1 -1
- package/dist/preview.mjs +185 -185
- package/dist/preview.mjs.map +4 -4
- package/dist/view-contracts.bundle.mjs +141 -141
- package/dist/view-contracts.bundle.mjs.map +4 -4
- package/docs/cli-reference.md +1 -1
- package/package.json +4 -2
- package/spec/ui-dsl.schema.json +159 -2
package/README.md
CHANGED
|
@@ -335,4 +335,14 @@ npm install -D view-contracts
|
|
|
335
335
|
npx view-contracts build -c view-contracts.config.yaml
|
|
336
336
|
```
|
|
337
337
|
|
|
338
|
-
Releases are published to npm when a [GitHub Release](https://github.com/foo-log-inc/view-contracts/releases) is published (`v*` tag).
|
|
338
|
+
Releases are published to npm when a [GitHub Release](https://github.com/foo-log-inc/view-contracts/releases) is published (`v*` tag).
|
|
339
|
+
|
|
340
|
+
### Bumping the version
|
|
341
|
+
|
|
342
|
+
`ignore-scripts` is on, so npm lifecycle hooks never fire — the version bump and the regeneration are two explicit steps:
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
npm version patch --no-git-tag-version && npm run sync:generated
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
`sync:generated` propagates the new version into `cli-contract.yaml`, `docs/cli-reference.md`, and `src/generated/cli/`, and re-renders `examples/admin-dashboard/generated/`. CI regenerates and diffs, so a bump committed without it fails the build.
|
package/cli-contract.yaml
CHANGED
|
@@ -3,7 +3,7 @@ cli_contracts: 0.1.0
|
|
|
3
3
|
|
|
4
4
|
info:
|
|
5
5
|
title: view-contracts CLI
|
|
6
|
-
version: 0.5.
|
|
6
|
+
version: 0.5.8
|
|
7
7
|
description: >-
|
|
8
8
|
Contract-first UI design toolchain. Compiles restricted view-contract TSX
|
|
9
9
|
to language-neutral View IR and renders platform targets (React, SwiftUI, Compose).
|