conventional-changelog-archived-repos / conventional-changelog-cli Goto Github PK
View Code? Open in Web Editor NEWdeprecated, instead use https://github.com/conventional-changelog/conventional-changelog monorepo
License: MIT License
deprecated, instead use https://github.com/conventional-changelog/conventional-changelog monorepo
License: MIT License
Latest version of changelog-cli wants an exported object
if (flags.config) {
config = require(resolve(process.cwd(), flags.config));
} else {
config = {};
}
// [...]
var changelogStream = conventionalChangelog(options, templateContext, config.gitRawCommitsOpts, config.parserOpts, config.writerOpts)
while latest config version of conventional-changelog-angular exports a promise and other versions a callback.
That's why the conventional-changelog library works with these configuration files but not the CLI.
In the following workflow people could combine 4 to 7 with a simple hook.
https://github.com/conventional-changelog-archived-repos/conventional-changelog-cli#recommended-workflow
With this hook people could simply use npm version
{
"scripts": {
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
}
}
If you combine with a proper .npmrc
the workflow could become:
npm version <patch|minor|major>
commandI find it strange for a rather "simple" tool to change its general behavior between minor releases, e.g. switching from -w
to -s
and now requiring -p <preset>
in order to be able to get an expected result when using conventional-changelog
.
While I appreciate you all doing a great job in providing this tool, it would be nice of you for at least keep a reasonable default when breaking with existing behavior.
The most reasonable defaults would have been
-w
with -s
-p angular
TIA
Currently is append on the bottom of the changelog file :(
First I do:
conventional-changelog --preset=angular -infile=CHANGELOG.md --same-file --release-count=0
later I release a new tag and:
conventional-changelog --preset=angular -infile=CHANGELOG.md -a -s
hmm... Totally missed that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.