1.7 KiB
1.7 KiB
hublib-web
Monorepo for shared UI packages distributed with Yarn workspaces.
External projects install these packages directly from Git tags. Package dist/ artifacts must be committed.
Structure
packages/tach-typography- typography tokens and adapters for React/Angular.packages/video-player- cross-framework video player runtime and adapters.packages/content-suggestions- content text/title with mention/tag/link parsing for React/Angular.
Package READMEs
Development
corepack enable
yarn set version 4.12.0
yarn install
yarn build
yarn test
Add a new package
- Create a folder inside
packages/<name>. - Add
package.jsonwith a unique package name. - Link internal dependencies with
workspace:*(orworkspace:^). - Run
yarn installand thenyarn build.
Installation from Git (SSH)
This repository is consumed by tag-based Git dependencies.
- Full install guide: docs/git-installation.md
- Release workflow: docs/release-policy.md
Command template:
yarn add "@hublib-web/<package>@git+ssh://git@github.com/ORG/REPO.git#workspace=@hublib-web/<package>&tag=<package>-vX.Y.Z"
Releases
Releases are done with Git tags (no Changesets, no npm publish).
Short flow:
- Bump version in
packages/<package>/package.json. - Build package and commit updated
dist/artifacts. - Create an annotated package tag:
<package>-vX.Y.Z. - Push commit and tags to origin.
Detailed policy and examples: docs/release-policy.md.