bhabermann / poc-husky-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to husky-java

OpenJDK Maven Node License: ISC Conventional Commits

Proof of Concept of using Husky in a Java project with Maven

How to initialize a new project

If you want to reproduce these features in your project, follow this how to

Install

npm install

Usage

Commitzen

In order to use Commitzen to aid you write your commits following the Conventional Commit Standards you just need type:

git commit

The following selection options will appear on CLI and you just need to follow the steps commitzen

CommitLint

In case you already know the Conventional Commit Standards, just write your commit, when you finish it, husky will run CommitLint in your commit to check if it is following the standads.

git commit -m "message not following conventional commit standrds"

commitlint

Other Checks

It is possible to configure several other hooks.

In this project there is only a git push hook besides the commit check that will run build and tests of java project.

git push

push

Run tests

npm run test

Author

👤 Bruno Habermann

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About


Languages

Language:Java 61.5%Language:Shell 32.4%Language:JavaScript 6.1%