Automate game commit standards with ease using Commitizen for streamlined development workflows.
npm install gamedev_commitzen_standardThis repository creates an automatic way to write automatically organized commits through git commands, using a commit patter to game development repositories for more descriptive and informative commit messages.
Follow the steps below to set up and start using this commit pattern in your project:
### 1. Make sure you already have node.js installed on your machine.
If you don't have Node.js installed yet, install in nodejs.org
### 2. Start the repository and enter the following commands to install dependencies into the repository:
npm init
npm install --save-dev commitizen cz-customizable
### 3. Extract the files released in this repository
### 4. Then move the “.czrc” and “.cz-config.js” files to the root of the repository.
### 5. write the following lines in your .gitignore file:
# Node Modules (commitzen dependencies)
/node_modules/
# CommitzenConfiguration
.czrc
.cz-config.js
package.json
package-lock.json
cz-config.js
### 6. Update the package.json
Write the item below inside "package.json":
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"commit": "npx git-cz"
}
Now, you're ready to start using the commit pattern! use “npx git-cz” to commit
Run the custom commit command:
npx git-cz
You will be presented with a series of interactive questions. Fill in the requested information, such as the commit type, a concise description, and optionally a more detailed body.
After answering the questions, the commit will be automatically generated with the proper formatting.
you can read the commit instructions at: Git Commit Standardization for Games Development