wukong-gitlog-cli 1.0.12 → 1.0.13

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.13](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.12...v1.0.13) (2025-12-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * 🎸 output-wukong ([c310623](https://github.com/tomatobybike/wukong-gitlog-cli/commit/c310623314c44bad792b55967c5aeabda5e61812))
11
+
5
12
  ### [1.0.12](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.11...v1.0.12) (2025-12-01)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wukong-gitlog-cli",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Advanced Git commit log exporter with Excel/JSON/TXT output, grouping, stats and CLI.",
5
5
  "keywords": [
6
6
  "git",
package/src/cli.mjs CHANGED
@@ -115,11 +115,11 @@ const main = async () => {
115
115
  .option('--out <file>', '输出文件名(不含路径)')
116
116
  .option(
117
117
  '--out-dir <dir>',
118
- '自定义输出目录,支持相对路径或绝对路径,例如 `--out-dir ../output`'
118
+ '自定义输出目录,支持相对路径或绝对路径,例如 `--out-dir ../output-wukong`'
119
119
  )
120
120
  .option(
121
121
  '--out-parent',
122
- '将输出目录放到当前工程的父目录的 `output/`(等同于 `--out-dir ../output`)'
122
+ '将输出目录放到当前工程的父目录的 `output-wukong/`(等同于 `--out-dir ../output-wukong`)'
123
123
  )
124
124
  .option(
125
125
  '--per-period-formats <formats>',
@@ -137,7 +137,7 @@ const main = async () => {
137
137
  )
138
138
  .option(
139
139
  '--serve',
140
- '启动本地 web 服务,查看提交统计(将在 output/data 下生成数据文件)'
140
+ '启动本地 web 服务,查看提交统计(将在 output-wukong/data 下生成数据文件)'
141
141
  )
142
142
  .option(
143
143
  '--port <n>',
@@ -147,7 +147,7 @@ const main = async () => {
147
147
  )
148
148
  .option(
149
149
  '--serve-only',
150
- '仅启动 web 服务,不导出或分析数据(使用 output/data 中已有的数据)'
150
+ '仅启动 web 服务,不导出或分析数据(使用 output-wukong/data 中已有的数据)'
151
151
  )
152
152
  .option('--version', 'show version information')
153
153
  .parse()
@@ -155,7 +155,7 @@ const main = async () => {
155
155
  const opts = program.opts()
156
156
  // compute output directory root early (so serve-only can use it)
157
157
  const outDir = opts.outParent
158
- ? path.resolve(process.cwd(), '..', 'output')
158
+ ? path.resolve(process.cwd(), '..', 'output-wukong')
159
159
  : opts.outDir || undefined
160
160
 
161
161
  if (opts.version) {
package/src/server.mjs CHANGED
@@ -48,7 +48,7 @@ export function startServer(port = 3000, outputDir) {
48
48
  const webRoot = path.resolve(pkgRoot, 'web')
49
49
  const dataRoot = outputDir
50
50
  ? path.resolve(outputDir)
51
- : path.resolve(process.cwd(), 'output')
51
+ : path.resolve(process.cwd(), 'output-wukong')
52
52
 
53
53
  // warn if web directory or data directory doesn't exist
54
54
  if (!fs.existsSync(webRoot)) {
@@ -118,7 +118,7 @@ export function startServer(port = 3000, outputDir) {
118
118
  server.listen(port, () => {
119
119
  const url = `http://localhost:${port}`
120
120
  console.log(chalk.green(`Server started at ${url}`))
121
- console.log(chalk.green(`Serving web/ and output/data/`))
121
+ console.log(chalk.green(`Serving web/ and output-wukong/data/`))
122
122
 
123
123
  // ====== 自动打开浏览器 ======
124
124
  openBrowser(url)
@@ -3,10 +3,10 @@ import path from 'path';
3
3
 
4
4
  export function ensureOutputDir(customDir) {
5
5
  // If a custom absolute/relative path is provided, resolve relative to cwd as-is
6
- // Otherwise default to `output` inside current working directory.
6
+ // Otherwise default to `output-wukong` inside current working directory.
7
7
  const dir = customDir
8
8
  ? path.resolve(process.cwd(), customDir)
9
- : path.resolve(process.cwd(), 'output');
9
+ : path.resolve(process.cwd(), 'output-wukong');
10
10
 
11
11
  if (!fs.existsSync(dir)) {
12
12
  fs.mkdirSync(dir, { recursive: true });