Dependencies

Styleguide comes with all of the dependencies you need for most projects. You can add additional dependencies, such as linters and minifiers, using the Yarn package manager.

Installing All Dependencies

To install all dependencies in your package.json, run yarn in the project’s root directory.

Adding a Dependency

To add a dependency not listed in your package.json, run yarn add [package] in the project’s root directory.

Upgrading a Dependency

To upgrade an installed dependency, run yarn upgrade [package] in the project’s root directory.

Removing a Dependency

To remove a dependency, run yarn remove [package] in the project’s root directory.

Clear Local Cache

Occasionally the Styleguide build (gulp styleguide) fails due to package conflicts in the yarn cache. To clear the cache, run yarn cache clean in the project’s root directory.