Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
conventional-changelog-project
Advanced tools
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
Commits that follow a standard and descriptive format can be parsed programmitically to learn much about the state of the repository.
Most particularly...
(i.e. Releases)
While many commit formats exist and you can invent your own, this project templates (and examplifies) the most popular, Conventional format.
https://github.com/conventional-changelog/conventional-changelog
All tooling is provided via npm
packages.
In order for any of this to be worthwhile and work, commits have to consistently follow the desired, Conventional, format. Therefore, a pre-commit hook linter in order.
package.json
{
"devDependencies": {
"@commitlint/cli": "^7.3.2",
"@commitlint/config-conventional": "^7.3.1",
"husky": "^1.3.1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
commitlint.config.js
module.exports = {extends: ['@commitlint/config-conventional']};
https://marionebl.github.io/commitlint/#/guides-local-setup
Writing repetitive, descriptive commits is necessary for honoring the standard, Conventional, format. However, writing (let alone, learning) them completely manually is tiresome and not necessary.
Instead of using git commit
, use...
> npm run cm
package.json
{
"scripts": {
"cm": "git-cz"
},
"devDependencies": {
"commitizen": "^3.0.5",
"cz-conventional-changelog": "^2.1.0",
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
https://github.com/commitizen/cz-cli
Once you have a Conventional commit log, you are ready to enjoy auto-generated Changelog and Version bumps.
> npm run release
> git push --follow-tags origin master
(release
only tags commits locally, so they need to bu pushed up after)
package.json
{
"scripts": {
"release": "standard-version"
},
"devDependencies": {
"standard-version": "^4.4.0"
}
FAQs
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
The npm package conventional-changelog-project receives a total of 0 weekly downloads. As such, conventional-changelog-project popularity was classified as not popular.
We found that conventional-changelog-project demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.