> For the complete documentation index, see [llms.txt](https://piximi.gitbook.io/piximi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piximi.gitbook.io/piximi/development/how-to-develop-for-piximi/scripts-and-lerna.md).

# Scripts & Lerna

An overview of Scripts and 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.
