Git Product home page Git Product logo

lotr-nextjs-quiz's People

Contributors

dependabot[bot] avatar filipe1309 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

derleysoares94

lotr-nextjs-quiz's Issues

Standardize Git commit messages with Husky + CommitLint + Commitizen

Suggestion to improve commit messages, with auto lint on git commit, and interactive commit folowing convetional commit pattern.

Tools

Husky - Apply lint & interactive commit into git commit with git hooks.

# Install Husky
yarn add husky -D

# Activate hooks
yarn husky install

https://github.com/typicode/husky

Commitlint - Lint commit messages

# Install commitlint cli and conventional config
yarn add @commitlint/{config-conventional,cli} -D

# Configure commitlint to use conventional config
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js

# Add husky hook
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'

https://github.com/conventional-changelog/commitlint

Commitizen - Interactive commit

# Install Commitizen
yarn add commitizen -D

# Initialize your project to use the cz-conventional-changelog adapter
yarn run commitizen init cz-conventional-changelog --yarn --dev --exact

# Add husky hook
npx husky add .husky/prepare-commit-msg 'exec < /dev/tty && node_modules/.bin/cz --hook || true'

https://github.com/commitizen/cz-cli

Then just use git commit & voila

git commit

Source:
https://www.youtube.com/watch?v=erInHkjxkL8&ab_channel=Rocketseat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.