Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Latest commit

 

History

History
60 lines (37 loc) · 1.26 KB

scripts-and-lerna.md

File metadata and controls

60 lines (37 loc) · 1.26 KB
description
An overview of Scripts and Lerna

Scripts & Lerna

Scripts

bootstrap

Use the bootstrap command to bootstrap the packages found in the ./packages directory:

yarn bootstrap

build

Use the `build` command to build the packages found in the ./packages directory:

yarn build

clean

Use the clean command to clean the build artifacts created by “build.”

yarn clean

test

Use the `test` command to run the unit tests found in the packages in the ./packages directory:

yarn test

Dependencies

Use the lerna add command to add a dependency to one or more packages.

If a dependency is used by just one package, use the scope option to specify the correct package name. For example:

lerna add foo --scope=@piximi/bar

adds the `foo` package to the decencies of the `@piximi/bar` package.

If a dependency is used by more than one package, use the `scope` option to specify the correct packages and provide the `peer` option to specify that the package is a peer dependency. For example:

lerna add foo --peer --scope=@piximi/bar, @piximi/baz

adds the foo package to the peer dependencies of both the @piximi/bar and @piximi/baz package.