Commit 003875ed authored by Mike Greiling's avatar Mike Greiling

Merge branch 'sh-yarn-dedupe-docs' into 'master'

Add documentation on how to add dependencies to yarn

See merge request gitlab-org/gitlab-ce!31066
parents 5b814f4c 928b9a10
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment