This repository contains an easy to consume template for NextJs and NextUI as the UI framework. It was initially done by Barry M Wire
This repository contains a basic template of a create-next-app that comes with the following packages out of the box:
First, run the development server:
npm run dev
# or
yarn dev
- Create a commitlint file:
touch commitlint.config.js
- Configure the commitlint file:
module.exports = {
extends: ['@commitlint/config-conventional'],
};
- Add a prepare step which enables husky to run the commitlint:
npm set-script prepare "husky install"
- Add a pre-commit step which runs the commitlint:
npx husky add .husky/pre-commit "npx --no-install commitlint --edit $1"
Have fun!