Contribute
Tooling setup
We use Rollup to build the library and Next.js to build the documentation. You can also run Jest tests over the code.
You should use pnpm instead of npm.
Follow these steps to run the project locally:
- Download and install Node.js 16.
- Install pnpm (
npm install -g pnpm
). - Fork the repository and clone it.
- Open root directory and run
pnpm install
to install dependencies. - Open /docs folder and run
pnpm install
again to install documentation dependencies. - Go back to the root.
Scripts
start
— build library and docs, then run next.js server with documentation
start:docs
— run next.js server with documentation (you need to run pnpm build:docs
before)
build
— build library
build:docs
— build documentation with next.js
build:all
— build library and examples
watch
— run library building in watch mode
watch:docs
— run documentation (next.js) in dev mode
watch:test
— run unit testing in watch mode
test
— run unit tests
coverage
— generate coverage report
fix
— fix code with prettier, eslint and stylelint
How to contribute
- Fork the repository.
- Create a feature-branch (feature/{feature_name}) based on the main branch.
- Commit changes and push.
- Create a pull-request from your feature-branch.
- Wait for your pull-request to be closed.