Skip to content

Commit

Permalink
feat(git-cz): make this ugly-ass monorepo commitizen-friendly
Browse files Browse the repository at this point in the history
adds a pre-commit hook to run gitlint and a config for committizen
  • Loading branch information
wenzowski authored and matthieu-foucault committed Apr 13, 2020
1 parent 5c06e17 commit 15c20dc
Show file tree
Hide file tree
Showing 5 changed files with 265 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "app/node_modules/cz-conventional-changelog"
}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,7 @@ install_dev_tools: install_asdf_tools install_perl_tools
deploy_test_data: $(call make_help,deploy_data,deploys database schemas and data)
deploy_test_data:
@bash ./.bin/deploy-data.sh --drop-db --dev-data

.PHONY: commit
commit:
@@app/node_modules/.bin/git-cz
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
"cypress": "^4.1.0",
"cypress-axe": "^0.8.1",
"cypress-plugin-retries": "^1.5.2",
"cz-conventional-changelog": "3.0.2",
"easygraphql-tester": "^5.1.6",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
Expand Down
Loading

0 comments on commit 15c20dc

Please sign in to comment.