Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.64 KB

File metadata and controls

73 lines (48 loc) · 2.64 KB

Contributing

Thanks for your interest in Package-Template! You are very welcome to contribute.

By contributing to Package-Template, you agree to abide by the code of conduct.

Reporting Bugs and Asking Questions

Before opening an issue, please search the issue tracker to make sure your issue hasn't already been reported.

New Features and Ideas

If you are proposing a new feature, make sure to open an issue to discuss your idea and make sure it is inline with the project goals.

Setup and Development

  1. Fork this repository to your own GitHub account and clone it to your local device:

    git clone https://github.com/your-name/package-template.git
    cd package-template
    git remote add upstream https://github.com/spautz/package-template.git
    
  2. Install the dependencies and ensure everything runs properly:

    pnpm install
    pnpm run all
    
  3. Create a new topic branch:

    git checkout -b my-topic-branch
    
  4. To test your local dev version of package-template in other projects, Yalc is an excellent tool.

  5. After you have made your changes, submit a pull request. Issues and pull requests are monitored, and you should receive a reply.

Code and Project Standards

Eslint, Typescript, and Prettier enforce most code standards. A pre-push hook will validate the project against those standards. CI also runs pnpm run catalogs:verify to validate workspace catalog usage conventions.

Running pnpm run test will check the code against unit tests and generate a code coverage report (in coverage/). This project's goal is to be near 100% code coverage.

Running pnpm run all will check everything: tests, code standards, and the build itself. Your pull request is more likely to be accepted if this passes for your branch.

Overall Process

In general, the contribution workflow looks like this:

  1. Open a new issue in the Issue tracker.
  2. Fork the repo and set up your local development environment.
  3. Make changes in a branch in your fork.
  4. Make sure all tests pass and there are no errors.
  5. Submit a pull request, referencing any issues it addresses.

Please try to keep your pull request focused in scope and avoid including unrelated commits.

After you have submitted your pull request, we'll try to get back to you as soon as possible. We may suggest some changes or improvements.

Thank you for contributing!