Sagi-o / lerna-practise

Lerna monorepo demonstration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lerna common commands

Install lerna monorepo folder:

npm i -D lerna

Or globally

npm install --global lerna

Init lerna monorepo:

npx lerna init

Create all packages on packages/ folder

Or create lib with:

npx lerna create {library name}

Clean all packages node_modules and hoist to the root:

npx lerna clean -y

Install package.json dependencies for all packages:

npx lerna bootstrap --hoist

npm run commands on all packages:

lerna run start --scope={app1, app2} lerna run test --scope={app1, app2}

See difference between commits:

lerna diff

About

Lerna monorepo demonstration


Languages

Language:JavaScript 48.6%Language:HTML 33.4%Language:CSS 18.0%