Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wll8/release-info
Extract the latest version information of the current project into your file, no longer worry about forgetting which version was released.
https://github.com/wll8/release-info
Last synced: about 5 hours ago
JSON representation
Extract the latest version information of the current project into your file, no longer worry about forgetting which version was released.
- Host: GitHub
- URL: https://github.com/wll8/release-info
- Owner: wll8
- Created: 2022-10-18T09:59:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T09:13:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T07:57:02.442Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# release-info
Extract the latest version information of the current project into your file, no longer worry about forgetting which version was released.
将当前项目的最新版本信息提取到您的文件中,再也不用担心忘记发布了哪个版本。
### use in encoding
```js
const {
inSetGitInfo,
} = require(`release-info`)// ...
```### Use from the command line
```sh
# Install
npm i -g release-info# Insert current version information into h5.html
release-info filePath=h5.html# Create a file with version information
release-info filePath=release.txt reset
```Command line arguments:
```txt
template -- for combining information
Default is {branch}/{hashShort} -- {nowDate}
Available variables are:
hash
hashShort
hashDate
nowDate
branch
gitName
gitEmail
osName
projectName
projectVersion
filePath -- Write information to file as comments
ext -- Specify the file suffix (without dots), which is automatically judged by the file name by default
reset -- Whether to overwrite the file content, equivalent to creating a file, the default is false
```### todo
- [ ] feat: change version number
- For example, `version=minor` increases the minor version number and gets the update log before the last version of the current branch