Coder Social home page Coder Social logo

conventional-commit-template's Introduction

A “conventional changelog” template project

The purpose of this project template is to assist you in writing your commit messages according to the “conventional commit” standard and also to auto-generate your tags/versions as well as the CHANGELOG.md file describing the new features of the project following a merge (following the semantic version convention).

How can I use it?

You can chose between cloning the project or copy/paste its configuration to setup your project.

For cloning you only have to do a git clone [email protected]:deliciousinsights/conventional-commit-template.git new-project-name then npm install.

Don’t forget to update the name and description of your project in the package.json file after cloning. The version number is gone be automatically updated while running “standard version”, so you don't have to change it.

If you only want to grab the configuration you can copy/paste the following files:

  • package.json (or the config, husky, standard-version and devDependencies parts)
  • commitlint.config.js
  • release.config.js
  • the full subdirectory .github/workflows/release.yml

Then run npm install in your project directory.

Create you GitHub (empty) repository and update your local one with the remote URL:

git remote set-url origin YOUR-PROJECT-URL

Initiate your remote master branch:

git push -u origin master

And you’re good to go! 🙌

What it does…

It installs tools that helps you follow the conventional changelog rules:

  • Husky automates Git hooks sharing and execution in you project
  • CommitLint validates your commit messages format (and stops the commit if it doesn’t match the conventional changelog rules)
  • Commitizen is a wizard that’s going to help you fill your commit message accordingly to the conventional changelog rules (you’ll have to run git cz instead of git commit)
  • Semantic Release automatically generates and updates your CHANGELOG.md, creates the associated Git tag and GitHub release, and updates the package.json version number. You can also configure any other file you expect to be bumped with the new version number.
  • A GitHub action runs semantic-release when a pull request is validated and the associated merge is done into master (see the .github/workflows/release.yml file for details).

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.