mongoose-data-seed
Version:
Seed mongodb with data using mongoose models
74 lines (46 loc) • 1.74 kB
Markdown
# Contributing
Contributions are always welcome, no matter how large or small.
**Working on your first Pull Request?** You can learn how from this _free_ series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
## Code of Conduct
By participating, you are expected to uphold this [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md). Please report unacceptable behavior to [sharvita@gmail.com](mailto:sharvita@gmail.com).
## Project setup
First, [fork](https://guides.github.com/activities/forking) then clone the repo:
```sh
git clone https://github.com/your-username/mongoose-data-seed
cd mongoose-data-seed
git remote add upstream https://github.com/sharvit/mongoose-data-seed
```
Install dependencies:
```sh
yarn
```
Run test suits to validate the project is working:
```sh
yarn test
```
Run linter to validate the project code:
```sh
yarn lint
# to fix linting errors
yarn lint --fix
```
Run linter to validate your commit message:
```sh
yarn lint:commit
```
## Committing and Pushing changes
Create a branch and start hacking:
```sh
git checkout -b my-branch
```
Commit and push your changes:
`generator-node-mdl` uses [commitizen](https://github.com/commitizen/cz-cli) to create commit messages so [semantic-release](https://github.com/semantic-release/semantic-release) can automatically create releases.
```sh
git add .
yarn commit
# answer the questions
git push origin my-branch
```
Open this project on [GitHub](https://github.com/sharvit/generator-node-mdl), then click “Compare & pull request”.
## Help needed
Please watch the repo and respond to questions/bug reports/feature requests, Thanks!