Shared library of UI components across Northern.tech projects
A local package repository (yalc) can be used to sync changes between this library and consumer applications (e.g., mender-server) without publishing to a remote registry.
npm install -g yalc or npm install -g @jimsheen/yalc
- Publish All: Run
npm run yalc:publishfrom the root to build all packages and add them to the local store. - Active Development: Run
npm run devwithin a specific package directory. This starts a watcher that automatically builds and pushes updates to the local store and any linked consumers. NOTE: dts generation is disabled in dev mode to reduce RAM consumption.
- Link Packages: Use
yalc add @northern.tech/{package_name}to point the application to your local build. Inmender-server, it’s possible to add all packages usingnpm run yalc:init - Restore NPM Versions: Run
yalc remove --allfollowed bynpm installto revert to the official published packages.
⚠️ Warning:yalc addmodifies yourpackage.jsonwith local file paths. Do not commit these changes to the repository.