daodou-command 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/bin/daodou.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
所有重要的项目更改都将记录在此文件中。
|
|
4
|
+
|
|
5
|
+
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),
|
|
6
|
+
并且此项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
7
|
+
|
|
8
|
+
## [未发布]
|
|
9
|
+
|
|
10
|
+
### 新增
|
|
11
|
+
### 更改
|
|
12
|
+
### 修复
|
|
13
|
+
### 移除
|
|
14
|
+
|
|
15
|
+
## [1.1.2] - 2025-09-16
|
|
16
|
+
|
|
17
|
+
### 修复
|
|
18
|
+
- 修复主程序版本号显示问题
|
|
19
|
+
- 主程序现在自动读取package.json中的版本号,无需手动维护
|
|
20
|
+
|
|
21
|
+
## [1.1.1] - 2025-09-16
|
|
22
|
+
|
|
23
|
+
### 修复
|
|
24
|
+
- 修复主程序版本号显示问题
|
|
25
|
+
- 主程序现在自动读取package.json中的版本号,无需手动维护
|
|
26
|
+
|
|
27
|
+
## [1.1.0] - 2025-09-16
|
|
28
|
+
|
|
29
|
+
### 新增
|
|
30
|
+
- 在package.json中添加git仓库信息
|
|
31
|
+
- 添加repository字段,指向GitHub仓库
|
|
32
|
+
- 添加bugs字段,指向GitHub issues页面
|
|
33
|
+
- 添加homepage字段,指向项目主页
|
|
34
|
+
|
|
35
|
+
### 更改
|
|
36
|
+
- 版本号从1.0.0升级到1.1.0
|
|
37
|
+
- 更新了npm包信息,现在包含完整的仓库链接
|
|
38
|
+
|
|
39
|
+
## [1.0.0] - 2025-09-16
|
|
40
|
+
|
|
41
|
+
### 新增
|
|
42
|
+
- 初始版本发布
|
|
43
|
+
- 支持自动化构建功能
|
|
44
|
+
- 自动检测Git分支
|
|
45
|
+
- 一键触发Jenkins构建
|
|
46
|
+
- 实时监听构建进度
|
|
47
|
+
- 支持多语言管理功能
|
|
48
|
+
- 多语言文件管理
|
|
49
|
+
- 自动翻译功能(Google Translate API)
|
|
50
|
+
- 多代理轮换绕过API限制
|
|
51
|
+
- 命令行工具基础功能
|
|
52
|
+
- 使用commander.js构建CLI
|
|
53
|
+
- 支持help和version命令
|
|
54
|
+
- 配置文件自动生成和管理
|
|
55
|
+
|
|
56
|
+
### 技术特性
|
|
57
|
+
- 基于Node.js开发
|
|
58
|
+
- 使用simple-git进行Git操作
|
|
59
|
+
- 集成Google Translate API
|
|
60
|
+
- 支持代理轮换
|
|
61
|
+
- 使用Puppeteer进行浏览器自动化
|
|
62
|
+
- 支持JSON5配置文件格式
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 版本说明
|
|
67
|
+
|
|
68
|
+
- **主版本号(MAJOR)**: 当你做了不兼容的API修改
|
|
69
|
+
- **次版本号(MINOR)**: 当你做了向下兼容的功能性新增
|
|
70
|
+
- **修订号(PATCH)**: 当你做了向下兼容的问题修正
|
|
71
|
+
|
|
72
|
+
## 链接
|
|
73
|
+
|
|
74
|
+
- [GitHub仓库](https://github.com/h025/daodou-command)
|
|
75
|
+
- [npm包页面](https://www.npmjs.com/package/daodou-command)
|
|
76
|
+
- [问题反馈](https://github.com/h025/daodou-command/issues)
|
package/bin/daodou.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const { Command } = require('commander');
|
|
4
4
|
const chalk = require('chalk');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const packageJson = require('../package.json');
|
|
5
7
|
const buildCommand = require('../lib/commands/build');
|
|
6
8
|
const langCommand = require('../lib/commands/lang');
|
|
7
9
|
|
|
@@ -11,7 +13,7 @@ const program = new Command();
|
|
|
11
13
|
program
|
|
12
14
|
.name('dao')
|
|
13
15
|
.description('刀豆命令行工具 - 自动化构建和部署')
|
|
14
|
-
.version(
|
|
16
|
+
.version(packageJson.version, '-v, --version');
|
|
15
17
|
|
|
16
18
|
// 添加 build 命令
|
|
17
19
|
program
|