Skip to content

Commit

Permalink
Merge pull request #32 from EduardoAraujoB/master
Browse files Browse the repository at this point in the history
feat: created a standard for commits
  • Loading branch information
EduardoAraujoB authored May 6, 2020
2 parents ab0cd80 + 6d3ac3e commit d6aa857
Show file tree
Hide file tree
Showing 5 changed files with 1,515 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged",
}
}
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ A simple quickstart in Node with Typescript
## Sumary

- [How to Setup](#how-to-setup)
- [Contributions](#contributions)
- [Testing](#testing)
- [Environment Variables](#environment-variables)
- [Scripts](#scripts)
Expand Down Expand Up @@ -75,6 +76,44 @@ or with yarn
yarn start
```

## Contributions

Hey to contribute on this project, you will have some guidelines to follow.

### Commits

We have a standard for the commits messages, wich is this standard

```
type(scope?): subject #scope is optional
```

**Type**

Type indicates what you do on your changes, and can be:

- build
- ci
- chore
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test

you can see more about it [here](https://www.conventionalcommits.org/en/v1.0.0/)

**Scope**

Scope indicates what is your changes, for an example, lets use the commit of this changes on readme.

```
docs: added contributions guidelines
```

## Testing

**Running all tests**
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
Loading

0 comments on commit d6aa857

Please sign in to comment.