Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 918 Bytes

dev.md

File metadata and controls

58 lines (38 loc) · 918 Bytes

DEV

Dev guides

requirements

  • yarn
  • node v12

Dev

Setup

Simply run yarn on the root path folder of the monorepo.

$ yarn

How to create a new library

Create the folder name in ./packages fodler with the wanted library name

$ cd ./packages
$ mkdir my_package_name
$ yarn init

How to add a local package to an other

$ cd packages/{working_package_name}
$ yarn lerna add @digikare/{dep_package_name} --scope=@digikare/{working_package_name}

How to remove a dependency

$ lerna exec -- yarn remove {package_name}

How to publish

$ yarn release

To update a package version to latest

$ npm dist-tags add {package_name}@version latest

References