We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大多数时候, 写的一个小小的库,还得要专门写变更日志。
而遵循一定的 commit 格式,是可以生成标准的变更日志的。
这时候就需要像conventional-changelog
这我就不得不在我的项目中添加脚本
npx conventional-changelog-cli -p angular -i CHANGELOG.md -s -r 0
今天呢,就把它提取出来,独立成为一个 vscode 扩展
让你方便的生成 CHANGELOG
CHANGELOG.md
conventional-changelog-cli
lerna
生成更新日志
conventional-changelog的包分有
conventional-changelog
按理来说,代码更次的,应该引用conventional-changelog-core或conventional-changelog
conventional-changelog-core
然而,这两个包都有问题: 不能指定当前工作目录去解析 (其实它引用的git-raw-commits是有参数设置的conventional-changelog并没有用这个参数)
git-raw-commits
我又不想 Fork 一个自己改, 那就只能用 conventional-changelog-cli, 以命令行的方式去运行。
npm install
vscode 直接把本地的node_modules依赖打包,并且忽略了一些目录和文件,包括.bin目录
node_modules
.bin
所以扩展是找不到conventional-changelog-cli的可执行文件
Linux 和 OSX 下 是一个 link,自己执行 chmod +x 即可,而 windows 下是 exe 文件。
chmod +x
所以自制可执行文件不靠谱
node ./node_modules/conventional-changelog-cli/cli.js
可以是可以,不过这样的扩展就有局限行,需要用户安装nodejs,显然不是每个用户都安装
nodejs
Electron 内置有的 NodeJS,我们就用它来执行这个 js 文件
process.execPath则是当前运行环境的可执行文件路径
process.execPath
execa(process.execPath, './node_modules/conventional-changelog-cli/cli.js');
最后完美解决
最后上项目: https://github.com/axetroy/vscode-changelog-generator
有什么意见或者功能需求,欢迎发issue给我!
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
大多数时候, 写的一个小小的库,还得要专门写变更日志。
而遵循一定的 commit 格式,是可以生成标准的变更日志的。
这时候就需要像conventional-changelog
这我就不得不在我的项目中添加脚本
今天呢,就把它提取出来,独立成为一个 vscode 扩展
让你方便的生成 CHANGELOG
支持哪些特性
CHANGELOG.md
。CHANGELOG.md
。TODO
conventional-changelog-cli
的参数设置lerna
生成更新日志
菜单说说踩的坑
conventional-changelog
的包分有按理来说,代码更次的,应该引用
conventional-changelog-core
或conventional-changelog
然而,这两个包都有问题: 不能指定当前工作目录去解析 (其实它引用的
git-raw-commits
是有参数设置的conventional-changelog
并没有用这个参数)我又不想 Fork 一个自己改, 那就只能用
conventional-changelog-cli
, 以命令行的方式去运行。那么问题来了:
npm install
的vscode 直接把本地的
node_modules
依赖打包,并且忽略了一些目录和文件,包括.bin
目录所以扩展是找不到
conventional-changelog-cli
的可执行文件Linux 和 OSX 下 是一个 link,自己执行
chmod +x
即可,而 windows 下是 exe 文件。所以自制可执行文件不靠谱
解决办法:
可以是可以,不过这样的扩展就有局限行,需要用户安装
nodejs
,显然不是每个用户都安装Electron 内置有的 NodeJS,我们就用它来执行这个 js 文件
process.execPath
则是当前运行环境的可执行文件路径最后完美解决
最后上项目: https://github.com/axetroy/vscode-changelog-generator
有什么意见或者功能需求,欢迎发issue给我!
The text was updated successfully, but these errors were encountered: