-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
88 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Contributing guide | ||
|
||
## Pull requests | ||
|
||
- Consider opening an issue before submitting a pull-request to avoid unnecessary work | ||
- Ensure pull request titles adhere to the [Conventional Commits][] specification | ||
|
||
[conventional commits]: https://www.conventionalcommits.org/ | ||
|
||
## Release | ||
|
||
The module is released automatically from the `main` branch using [semantic-release-action][]. Version bumps and change logs are generated from the commit messages. | ||
|
||
[semantic-release-action]: https://github.com/cycjimmy/semantic-release-action | ||
|
||
## Development setup | ||
|
||
After cloning the repository, use the `setup` script to install development dependencies and the `validate` script to run all checks and tests to verify your setup. | ||
|
||
```shell | ||
npm run setup | ||
npm run validate | ||
``` | ||
|
||
### Lint and format | ||
|
||
Run auto-formatting to ensure any changes adhere to the code style of the repository: | ||
|
||
```shell | ||
npm run format | ||
``` | ||
|
||
To run lint and format checks without making any changes: | ||
|
||
```shell | ||
npm run lint | ||
``` | ||
|
||
### Test | ||
|
||
Run unit tests once or in watch mode: | ||
|
||
```shell | ||
npm test | ||
npm run test:watch | ||
``` | ||
|
||
### Docs | ||
|
||
Use the `toc` script to ensure the README's table of contents is up to date: | ||
|
||
```shell | ||
npm run toc | ||
``` | ||
|
||
Use `contributors:add` to add a contributor to the README: | ||
|
||
```shell | ||
npm run contributors:add | ||
``` | ||
|
||
Use `contributors:generate` to ensure the README's contributor list is up to date: | ||
|
||
```shell | ||
npm run contributors:generate | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters