Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
grunt-conventional-changelog
Advanced tools
Generate a changelog using conventional-changelog
Issues with the output should be reported on the conventional-changelog
issue tracker.
$ npm install --save-dev grunt-conventional-changelog
grunt.loadNpmTasks('grunt-conventional-changelog');
grunt.initConfig({
conventionalChangelog: {
options: {
changelogOpts: {
// conventional-changelog options go here
preset: 'angular'
},
context: {
// context goes here
},
gitRawCommitsOpts: {
// git-raw-commits options go here
},
parserOpts: {
// conventional-commits-parser options go here
},
writerOpts: {
// conventional-changelog-writer options go here
}
},
release: {
src: 'CHANGELOG.md'
}
}
});
grunt.registerTask('default', ['conventionalChangelog']);
See the conventional-changelog docs.
There are some changes:
It is grunt.verbose.writeln
.
Sometimes after auto-generating the changelog you want to be able to review the generated changes or add some notes to the current release, you can polish your changelog manually without changing your workflow (you might use grunt-release
in the workflow but need grunt to wait until you have finished polishing your changelog).
Here are some examples of how to achieve this.
grunt.initConfig({
// grunt-shell
shell: {
changelog: {
options: {
stdinRawMode: true
},
command: 'subl -w CHANGELOG.md',
}
},
// or grunt-spawn
spawn: {
changelog: {
command: 'vim',
pattern: 'CHANGELOG.md',
commandArgs: ['{0}'],
opts: {
stdio: 'inherit'
}
}
},
});
...
grunt.registerTask('publish', ['conventionalChangelog', 'shell:changelog', 'release']);
// or
grunt.registerTask('publish', ['conventionalChangelog', 'spawn:changelog', 'release']);
MIT
FAQs
Generate a changelog using conventional-changelog
The npm package grunt-conventional-changelog receives a total of 2,106 weekly downloads. As such, grunt-conventional-changelog popularity was classified as popular.
We found that grunt-conventional-changelog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.