Skip to content

Commit f8752c0

Browse files
committed
feat: added setup for conventional commits
1 parent ca0099f commit f8752c0

File tree

7 files changed

+3541
-0
lines changed

7 files changed

+3541
-0
lines changed

.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,92 @@ venv.bak/
114114

115115
# mypy
116116
.mypy_cache/
117+
118+
# Logs
119+
logs
120+
*.log
121+
npm-debug.log*
122+
yarn-debug.log*
123+
yarn-error.log*
124+
lerna-debug.log*
125+
126+
# Diagnostic reports (https://nodejs.org/api/report.html)
127+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
128+
129+
# Runtime data
130+
pids
131+
*.pid
132+
*.seed
133+
*.pid.lock
134+
135+
# Directory for instrumented libs generated by jscoverage/JSCover
136+
lib-cov
137+
138+
# Coverage directory used by tools like istanbul
139+
coverage
140+
*.lcov
141+
142+
# nyc test coverage
143+
.nyc_output
144+
145+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
146+
.grunt
147+
148+
# Bower dependency directory (https://bower.io/)
149+
bower_components
150+
151+
# node-waf configuration
152+
.lock-wscript
153+
154+
# Compiled binary addons (https://nodejs.org/api/addons.html)
155+
build/Release
156+
157+
# Dependency directories
158+
node_modules/
159+
jspm_packages/
160+
161+
# TypeScript v1 declaration files
162+
typings/
163+
164+
# TypeScript cache
165+
*.tsbuildinfo
166+
167+
# Optional npm cache directory
168+
.npm
169+
170+
# Optional eslint cache
171+
.eslintcache
172+
173+
# Optional REPL history
174+
.node_repl_history
175+
176+
# Output of 'npm pack'
177+
*.tgz
178+
179+
# Yarn Integrity file
180+
.yarn-integrity
181+
182+
# dotenv environment variables file
183+
.env
184+
.env.test
185+
186+
# parcel-bundler cache (https://parceljs.org/)
187+
.cache
188+
189+
# next.js build output
190+
.next
191+
192+
# nuxt.js build output
193+
.nuxt
194+
195+
# vuepress build output
196+
.vuepress/dist
197+
198+
# Serverless directories
199+
.serverless/
200+
201+
# FuseBox cache
202+
.fusebox/
203+
204+
# DynamoDB Local files
205+
.dynamodb/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12.16.1

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ recursive-exclude gedcom *.md
1818

1919
# Include GEDCOM test files
2020
include tests/files/*.ged
21+
22+
# Exclude Node related files
23+
exclude .nvmrc
24+
exclude commitlint.config.js
25+
exclude package.json
26+
exclude package-lock.json

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,27 @@ the `repository-url` is `https://upload.pypi.org/legacy/`.
6262
>
6363
> `pipenv run twine upload --repository-url https://upload.pypi.org/legacy/ dist/*`
6464
65+
## Contribution
66+
67+
1. Clone the repo
68+
1. Make your changes
69+
1. (Write appropriate tests within `tests/`)
70+
1. Commit using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
71+
1. [Open a pull request](https://github.com/madprime/python-gedcom/compare)
72+
1. When checks for the PR fail consider making changes so that the checks pass
73+
74+
### Git: Conventional Commits
75+
76+
Git committing is done using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) with NPM.
77+
78+
Consider installing node packages with [NVM](https://github.com/nvm-sh/nvm) and start committing with `npm run commit`.
79+
Git hooks installed via [Husky](https://github.com/typicode/husky) will do the rest.
80+
81+
How to install:
82+
83+
1. Use Node version `12.16.1` (or use [NVM](https://github.com/nvm-sh/nvm) and run `nvm use`)
84+
1. Run `npm install` and then `npm run commit` to commit your changes
85+
6586
## History
6687

6788
This module was originally based on a GEDCOM parser written by

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
};

0 commit comments

Comments
 (0)