Skip to content

[REFERENCE] Install and config automate tasks in Angular project

Anartz Mugika Ledo edited this page May 14, 2022 · 3 revisions

The goal is to be able to install and configure everything necessary to automate tasks with the aim of maintaining the quality of the code that we are going to implement in the project together with the application of good practices using git flow.

.husky/pre-commit
-------------------

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint

Add chmod a+x .husky/pre-commit

Now, we have install and config commitlint

Go to: https://commitlint.js.org/#/guides-local-setup

Execute this command

yarn add -D @commitlint/{cli,config-conventional}
Clone this wiki locally