@dramaorg/odit-dolorem

2.1.20 • Public • Published

example workflow

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 --access=public

Package Sidebar

Install

npm i @dramaorg/odit-dolorem

Weekly Downloads

238

Version

2.1.20

License

MIT

Unpacked Size

39.3 kB

Total Files

93

Last publish

Collaborators

  • vanthuanbt26