lerna: add page (#7742)

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
This commit is contained in:
pixel 2022-02-05 06:25:05 +01:00 committed by GitHub
parent ec75a9a749
commit b58b87ff74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
pages/common/lerna.md Normal file
View File

@ -0,0 +1,24 @@
# lerna
> A tool for managing JavaScript projects with multiple packages.
> More information: <https://lerna.js.org>.
- Initialize project files (`lerna.json`, `package.json`, `.git`, etc.):
`lerna init`
- Install all external dependencies of each package and symlink together local dependencies:
`lerna bootstrap`
- Run a specific script for every package that contains it in its `package.json`:
`lerna run {{script}}`
- Execute an arbitrary shell command in every package:
`lerna exec -- {{ls}}`
- Publish all packages that have changed since the last release:
`lerna publish`