First, ensure you have Node v10+ and the latest yarn installed on your machine.
As an external contributor, you will have to fork Peculiar Fortify Web-components to contribute code. Clone your fork onto your machine and then run the following commands to install dependencies:
git clone [email protected]:<username>/pv-certificates-viewer.git
cd pv-certificates-viewer
yarn bootstrap
yarn build
A typical contributor workflow looks like this:
- Create a new feature branch.
- Run
yarn start:webcomponents
in the root to watch all the code and run the dev app at http://localhost:3000. - Write some code.
- Ensure your code is tested and linted.
- Add unit tests as necessary when fixing bugs or adding features; run them with
yarn test
in the relevantpackages/
directory. - Linting is best handled by your editor for real-time feedback. Run
yarn lint
to be 100% safe.
- Add unit tests as necessary when fixing bugs or adding features; run them with
- Submit a Pull Request on GitHub and fill out the template.
- Team members will review your code and merge it after approvals.
- You may be asked to make modifications to code style or to fix bugs you may have not noticed.
- Please respond to comments in a timely fashion (even if to tell us you need more time).
- Cheers, you contributed!