Various frontend utils and polyfills
This libs are using npm workspaces to achieve mono-repo multi-packages
Workspaces
Install
npm ci
Add new package
npm run generate -- "<name-of-package>"
Dependencies & devDependencies are installed into your new package with
npm i some-package -w packages/consumer
To in make internal dependencies, do:
npm i ./packages/target -w packages/<name-of-package>
Test & Build
From root run
npm run test
npm run build
These commands will test and build all the packages respectively
Versioning
The npm-script ws:version will ensure version and tagging are done right:
npm run ws:version:set:package --package=packages/<name-of-package> --bump=<new-version-number>
or as a bump action
npm run ws:version:set:all <major|minor|patch....>
Publish
npm run build
npm publish --workspace @hansogj/<name-of-package>
or
npm run build
npm publish --ws