Contributing to Monorepo

February 29, 2024 ยท View on GitHub

pnpm install

Run pnpm build in the project root to build all packages:

pnpm build

Split a new terminal and switch to the target directory for testing to avoid running tests from other packages:

cd packages/css

Testing

pnpm test -- --watch

Commit your tests ( and create a Pull Request ):

Add @1aron tests

Linting

Follow the Techor ESLint Preset

pnpm lint

To automatically fix any violations in your code:

pnpm lint -- --fix

Type Checking

pnpm type-check

Commit Checking

Follow the Techor Conventional Commits

pnpm commit-check

Checking

You have to pass pnpm check before submitting a pull request.

pnpm check

The command includes all of the following checks:

Building

pnpm build