Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 984 Bytes

DEVELOPMENT.md

File metadata and controls

29 lines (19 loc) · 984 Bytes

Development

This repository uses workspaces to share the dependencies of the library and the demo application. A simple npm install inside the root directory is enough.

Setup

You'll need the following packages for contributing:

Run make setup to enable the pre-commit hook.

The demo application (react-components-example) serves two purposes:

  1. Presenting the existing components with some code to copy-paste.
  2. Instantly see your changes when you're making changes to the library.

Run the following commands in two separate terminals to see your library changes in real time:

  • $ make run-demo
  • $ make libbuild-dev

The last command watches the library directory for any changes and incrementally "compiles" the changed files to dist/esm/ and thanks to the symlink inside the library directory make run-demo can use the produced files directly.