The Coconut project is a monorepo that uses Nx, so having some knowledge of Nx would be helpful to better understand how things work.
TBD
Clone the project then install dependencies in the root of the project:
$ yarn install
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.
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>
.