Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 953 Bytes

DEV-GUIDE.md

File metadata and controls

49 lines (30 loc) · 953 Bytes

Developer guide

The Coconut project is a monorepo that uses Nx, so having some knowledge of Nx would be helpful to better understand how things work.

Main rules

TBD

Setup

Clone the project then install dependencies in the root of the project:

$ yarn install

Running unit tests

Running tests for a specific package:

$ yarn test <package name>

Running tests for all packages:

$ yarn test:all

During development you can add the --watch option to start jest in watch mode.

If you run into strange issues when running tests, try to clear the jest cache with

$ yarn jest --clearCache

then run the tests again.

Building

Run the following command to build production versions of a package:

yarn buid <package name>

If the build succeeds, the generated production version will be available in the folder dist/packages/<package name>.