Add documentation on how to add dependencies to yarn

Danger constantly warns about de-duplicating dependencies, so put these
instructions in the documentation so they can be searched.
This commit is contained in:
Stan Hu 2019-07-23 10:28:23 -07:00
parent b5cc47bda6
commit 928b9a1055
1 changed files with 12 additions and 0 deletions

View File

@ -15,6 +15,18 @@ Exceptions are made for some tools that we require in the
`gitlab:assets:compile` CI job such as `webpack-bundle-analyzer` to analyze our
production assets post-compile.
To add or upgrade a dependency, run:
```sh
yarn add <your dependency here>
```
This may introduce duplicate dependencies. To de-duplicate `yarn.lock`, run:
```sh
node_modules/.bin/yarn-deduplicate --list --strategy fewer yarn.lock && yarn install
```
---
> TODO: Add Dependencies