Scripts & Lerna
An overview of Scripts and Lerna
Scripts
bootstrap
Use the bootstrap command to bootstrap the packages found in the ./packages directory:
yarn bootstrapbuild
Use the `build` command to build the packages found in the ./packages directory:
yarn buildclean
Use the clean command to clean the build artifacts created by “build.”
yarn cleantest
Use the `test` command to run the unit tests found in the packages in the ./packages directory:
yarn testDependencies
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/baradds 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/bazadds the foo package to the peer dependencies of both the @piximi/bar and @piximi/baz package.
Last updated
Was this helpful?