@hansogj/utils-ws
v0.1.0
Published
[![example workflow](https://github.com/hansogj/utils-ws/actions/workflows/build.yml/badge.svg)](https://github.com/hansogj/utils-ws/actions/workflows/build.yml/badge.svg)
Downloads
3
Readme
Various frontend utils and polyfills
This libs are using npm workspaces to achieve mono-repo multi-packages
Workspaces
Install
pnpm i --frozen-lockfile
Add new package
pnpm run generate -- "<name-of-package>"
Dependencies & devDependencies are installed into your new package with
cd packages/<target>
pnpm add some-package
cd -
To in make internal dependencies, go to target package and do:
cd packages/<target>
pnpm add --workspace <name-of-package>
cd -
Test & Build
From root run
pnpm run test
pnpm run build
These commands will test and build all the packages respectively
Versioning
The pnpm-script ws:version:set:all will ensure all packages are updated with same strategy, and git tagging is done right
pnpm run ws:version:set:all <strategy: major|minor|patch....>
Changing version to a single workspace package, simply enter the package and do
cd packages/<target>
pnpm version <strategy: major|minor|patch....>
../../scripts/ws-scripts.sh gitCommitTagPush
cd -
Publish
pnpm run build
cd packages/<target>
pnpm publish
cd -
or
pnpm run build
pnpm -r publish