Skip to content

Commit 2b625f3

Browse files
authored
chore(config): rename oz-dev to oz-ui-dev in local dev scripts (#379)
* chore(config): rename oz-dev to oz-ui-dev in local dev scripts * chore(deps): bump @openzeppelin/ui-dev-cli to ^0.5.0
1 parent 372ff86 commit 2b625f3

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

.specify/memory/constitution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ string, addressType?: string)` supports chain-specific behavior.
163163

164164
- Use `pnpm` for all tasks (`pnpm dev`, `pnpm build`, `pnpm test`,
165165
`pnpm -r format:check`, `pnpm fix-all`).
166-
- **Local UI development**: Run `pnpm dev:local` to use the shared `oz-dev`
166+
- **Local UI development**: Run `pnpm dev:local` to use the shared `oz-ui-dev`
167167
workflow backed by the checked-in `.openzeppelin-dev.json` and
168168
`.pnpmfile.cjs` files. Run `pnpm dev:npm` to switch back to published npm
169169
packages without rewriting committed dependencies.

apps/builder/src/oz-tailwind.generated.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Managed by oz-dev tailwind fix */
1+
/* Managed by oz-ui-dev tailwind fix */
22
@layer base, components, utilities;
33

44
@import 'tailwindcss' source(none);

docs/LOCAL_DEVELOPMENT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pnpm dev
2929

3030
## How It Works
3131

32-
The local development setup uses the published `oz-dev` CLI plus a small config-driven `.pnpmfile.cjs` hook in this repo. The CLI builds and packs local families from your checked-out source repos, while the pnpm hook rewrites dependencies to those packed tarballs when `LOCAL_UI=true` and `LOCAL_ADAPTERS=true` are enabled for install.
32+
The local development setup uses the published `oz-ui-dev` CLI plus a small config-driven `.pnpmfile.cjs` hook in this repo. The CLI builds and packs local families from your checked-out source repos, while the pnpm hook rewrites dependencies to those packed tarballs when `LOCAL_UI=true` and `LOCAL_ADAPTERS=true` are enabled for install.
3333

3434
### Directory Structure
3535

@@ -62,7 +62,7 @@ The local development setup uses the published `oz-dev` CLI plus a small config-
6262
pnpm dev:local
6363
```
6464

65-
This command delegates to the published `oz-dev` CLI. It builds the selected package families from your local `openzeppelin-ui` and `openzeppelin-adapters` checkouts, packs them into tarballs under `.packed-packages/local-dev`, and reinstalls ui-builder against those packed artifacts.
65+
This command delegates to the published `oz-ui-dev` CLI. It builds the selected package families from your local `openzeppelin-ui` and `openzeppelin-adapters` checkouts, packs them into tarballs under `.packed-packages/local-dev`, and reinstalls ui-builder against those packed artifacts.
6666

6767
### Switch to Local UI Kit Only
6868

@@ -92,7 +92,7 @@ LOCAL_UI_PATH=/path/to/openzeppelin-ui pnpm dev:uikit:local
9292
pnpm dev:npm
9393
```
9494

95-
This delegates to `oz-dev use remote`, which removes local manifests and reinstalls against published npm packages.
95+
This delegates to `oz-ui-dev use remote`, which removes local manifests and reinstalls against published npm packages.
9696

9797
## Development Workflow
9898

@@ -157,7 +157,7 @@ That script reads **stable** adapter versions from the public npm registry unles
157157
pnpm dev:adapters:local
158158
```
159159

160-
This command uses the shared `oz-dev` CLI to build and pack the adapter family only, then reinstalls ui-builder against the packed adapter tarballs while leaving UI packages on published dependencies.
160+
This command uses the shared `oz-ui-dev` CLI to build and pack the adapter family only, then reinstalls ui-builder against the packed adapter tarballs while leaving UI packages on published dependencies.
161161

162162
If your adapter checkout is elsewhere, use the canonical path variable:
163163

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"clean": "pnpm -r --if-present clean",
1414
"install-deps": "pnpm install --frozen-lockfile --ignore-scripts --prefer-offline",
1515
"dev": "pnpm --filter=@openzeppelin/ui-builder-app dev",
16-
"dev:local": "LOCAL_UI_PATH=${LOCAL_UI_PATH:-../openzeppelin-ui} && LOCAL_ADAPTERS_PATH=${LOCAL_ADAPTERS_PATH:-../openzeppelin-adapters} && LOCAL_UI_PATH=\"$LOCAL_UI_PATH\" LOCAL_ADAPTERS_PATH=\"$LOCAL_ADAPTERS_PATH\" oz-dev use local --project \"$PWD\" --family ui --family adapters",
17-
"dev:uikit:local": "LOCAL_UI_PATH=${LOCAL_UI_PATH:-../openzeppelin-ui} && LOCAL_UI_PATH=\"$LOCAL_UI_PATH\" oz-dev use local --project \"$PWD\" --family ui",
18-
"dev:adapters:local": "LOCAL_ADAPTERS_PATH=${LOCAL_ADAPTERS_PATH:-../openzeppelin-adapters} && LOCAL_ADAPTERS_PATH=\"$LOCAL_ADAPTERS_PATH\" oz-dev use local --project \"$PWD\" --family adapters",
19-
"dev:npm": "oz-dev use remote --project \"$PWD\"",
16+
"dev:local": "LOCAL_UI_PATH=${LOCAL_UI_PATH:-../openzeppelin-ui} && LOCAL_ADAPTERS_PATH=${LOCAL_ADAPTERS_PATH:-../openzeppelin-adapters} && LOCAL_UI_PATH=\"$LOCAL_UI_PATH\" LOCAL_ADAPTERS_PATH=\"$LOCAL_ADAPTERS_PATH\" oz-ui-dev use local --project \"$PWD\" --family ui --family adapters",
17+
"dev:uikit:local": "LOCAL_UI_PATH=${LOCAL_UI_PATH:-../openzeppelin-ui} && LOCAL_UI_PATH=\"$LOCAL_UI_PATH\" oz-ui-dev use local --project \"$PWD\" --family ui",
18+
"dev:adapters:local": "LOCAL_ADAPTERS_PATH=${LOCAL_ADAPTERS_PATH:-../openzeppelin-adapters} && LOCAL_ADAPTERS_PATH=\"$LOCAL_ADAPTERS_PATH\" oz-ui-dev use local --project \"$PWD\" --family adapters",
19+
"dev:npm": "oz-ui-dev use remote --project \"$PWD\"",
2020
"docker:dev": "docker-compose up --build",
2121
"docs": "oz-docs -c docs",
2222
"docs:watch": "oz-docs watch docs",
@@ -63,7 +63,7 @@
6363
"@commitlint/config-conventional": "^19.8.1",
6464
"@commitlint/cz-commitlint": "^19.8.1",
6565
"@ianvs/prettier-plugin-sort-imports": "4.5.1",
66-
"@openzeppelin/ui-dev-cli": "^0.2.2",
66+
"@openzeppelin/ui-dev-cli": "^0.5.0",
6767
"@openzeppelin/docs-utils": "^0.1.6",
6868
"@tailwindcss/postcss": "^4.1.17",
6969
"@testing-library/jest-dom": "^6.9.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)