forked from open-sauced/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add release docs for open-sauced/conventional-commit (open-sauc…
…ed#27) * docs: add pre-release docs for open-sauced/conventional-commit * build: remove release tooling in favor of open-sauced/semantic-release-conventional-config:3.0.0 * docs: update generic semantic release docs * docs: adjust workflow docs for semantic release closes open-sauced#26 closes open-sauced#30 closes open-sauced#31
- Loading branch information
Showing
8 changed files
with
10,266 additions
and
19,574 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
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,80 @@ | ||
# @open-sauced/conventional-commit | ||
|
||
## Description | ||
|
||
The `npm` package `@open-sauced/conventional-commit` is designed to help users `git commit` using [commitizen](https://github.com/commitizen/cz-cli) and [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
|
||
## Dependencies | ||
|
||
This package uses the following modules: | ||
|
||
- [cz-cli](https://github.com/commitizen/cz-cli) | ||
- [cz-conventional-changelog](https://github.com/commitizen/cz-conventional-changelog) | ||
|
||
## Installation | ||
|
||
```shell | ||
npm install --save-dev @open-sauced/conventional-commit | ||
``` | ||
|
||
Add the verification scripts to your `scripts` section in the `package.json` file: | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"push": "npx @open-sauced/conventional-commit" | ||
} | ||
} | ||
``` | ||
|
||
The reason why we provide `npx` in the `scripts` section is for the people using this as a development enhancement, interactive configurations or trimmed dependency trees, where using `npx` is preferred over installing all the dependencies at once. | ||
|
||
## Usage | ||
|
||
All you have to do is run the script next to your `package.json`: | ||
|
||
```shell | ||
npx @open-sauced/conventional-commit | ||
# or | ||
npx conventional-commit | ||
``` | ||
|
||
## Advanced usage | ||
|
||
The most common use case for this package is to run it instead of the `git commit` command inside your `npm` scripts: | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"push": "npx @open-sauced/conventional-commit" | ||
} | ||
} | ||
``` | ||
|
||
or | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"push": "npx conventional-commit" | ||
} | ||
} | ||
``` | ||
|
||
If you want to ensure local-only usage: | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"push": "conventional-commit" | ||
} | ||
} | ||
``` | ||
|
||
## FAQ | ||
|
||
## Contributing | ||
|
||
We're always happy to onboard people into open source! | ||
|
||
Check out the repository at [@open-sauced/conventional-commit](https://github.com/open-sauced/conventional-commit) ❤️ |
Oops, something went wrong.