commit-tools-setup
v1.0.0
Published
Tool to setup commit conventions and formatting.
Maintainers
Readme
Commit Tools Setup
A CLI tool to automatically set up Git commit conventions and code formatting in your projects.
Features
- 🎯 Automated setup of commit conventions
- 💅 Code formatting with Prettier
- 🐶 Git hooks with Husky
- 📝 Commit message linting with Commitlint
- 🔧 Interactive commit creation with Commitizen
Installation
npm install -g commit-tools-setupUsage
In your project directory, run:
setup-commit-toolsThis will:
- Install necessary dependencies
- Configure Prettier for code formatting
- Set up Commitlint for commit message validation
- Configure Commitizen for interactive commits
- Install Husky Git hooks
- Update package.json scripts
Git Hooks Installed
- pre-commit: Automatically formats code
- prepare-commit-msg: Enables Commitizen
- commit-msg: Validates commit messages
- pre-push: Checks code formatting
Configuration
The tool sets up the following configurations:
Prettier
- Semi-colons enabled
- Single quotes
- 2 space indentation
- 80 character line width
- ES5 trailing commas
Commitlint
- Uses conventional commit standards
- Enforces consistent commit message format
License
CC0-1.0
