From b58b87ff748afce0afc63e0b61948ae110824b4e Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 5 Feb 2022 06:25:05 +0100 Subject: [PATCH] lerna: add page (#7742) Co-authored-by: Axel Navarro --- pages/common/lerna.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/lerna.md diff --git a/pages/common/lerna.md b/pages/common/lerna.md new file mode 100644 index 0000000000..c640cfc8b1 --- /dev/null +++ b/pages/common/lerna.md @@ -0,0 +1,24 @@ +# lerna + +> A tool for managing JavaScript projects with multiple packages. +> More information: . + +- 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`