@jeffchi/logger 2.5.1-alpha.0 → 2.9.0-rc.1
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/README.md +16 -24
- package/package.json +5 -9
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<h1
|
|
2
|
-
<a href="https://github.com/poechiang/jeffchi-logger#readme" target="_blank"
|
|
1
|
+
<h1 >
|
|
2
|
+
<a href="https://github.com/poechiang/jeffchi-logger#readme" target="_blank">@JeffChi/Logger</a>
|
|
3
3
|
</h1>
|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
A log print output javascript tool library that can be used at the front and back ends
|
|
8
8
|
|
|
9
9
|
[](https://github.com/facebook/jest)
|
|
10
|
-
](https://github.com/poechiang/jeffchi-logger/actions/workflows/npm-publish.yml)
|
|
11
|
+
[](https://github.com/poechiang/jeffchi-logger/actions/workflows/npm-publish-github-packages.yml)
|
|
11
12
|
[](https://github.com/prettier/prettier)
|
|
12
|
-
[](https://github.com/poechiang/jeffchi-logger/actions/workflows/jest-report.yml)
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
## 支持环境
|
|
@@ -137,25 +137,17 @@ export interface ILogOptions {
|
|
|
137
137
|
npm run name
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
| 脚本名称
|
|
141
|
-
|
|
|
142
|
-
| clear
|
|
143
|
-
| doc
|
|
144
|
-
| dev
|
|
145
|
-
| build
|
|
146
|
-
| format
|
|
147
|
-
| lint
|
|
148
|
-
| test
|
|
149
|
-
| push
|
|
150
|
-
|
|
|
151
|
-
| release [`major`\|`minor`\|`patch`] [`-a`] | 生成新的 `主`\|`次`\|`批` 版本号,推送远程仓库后,并发布至 npm 仓 <blockquote> -a: 提交全部修改</blockquote> |
|
|
152
|
-
| release:alpha [`major`\|`minor`\|`patch`] [`-a`] | 生成新的 `主`\|`次`\|`批` 内部版本号,推送远程仓库后,并发布至 npm 仓 <blockquote> -a: 提交全部修改</blockquote> |
|
|
153
|
-
| release:beta [`major`\|`minor`\|`patch`] [`-a`] | 生成新的 `主`\|`次`\|`批` 公测版本号,推送远程仓库后,并发布至 npm 仓 <blockquote> -a: 提交全部修改</blockquote> |
|
|
154
|
-
| release:rc [`major`\|`minor`\|`patch`] [`-a`] | 生成新的 `主`\|`次`\|`批` 候选版本号,推送远程仓库后,并发布至 npm 仓 <blockquote> -a: 提交全部修改</blockquote> |
|
|
155
|
-
|
|
156
|
-
> ### `version` 与 `release`的区别:
|
|
157
|
-
>
|
|
158
|
-
> `version`只打标生成新的版本号,同步远程仓库,并不会执行最后的发布流程<br> > `release`打标生成新的版本号,同步远程仓库,并且会执行最后的发布流程
|
|
140
|
+
| 脚本名称 | 说明 |
|
|
141
|
+
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
142
|
+
| clear | 清理 `lib/` `docs/` `build/`临时目录 |
|
|
143
|
+
| doc | 利用 typedoc 生成 api 文档,位于`docs/`目录下 |
|
|
144
|
+
| dev | 启动开发模式 |
|
|
145
|
+
| build | 执行构建过程 |
|
|
146
|
+
| format | 利用 prettier 格式化 |
|
|
147
|
+
| lint | 依赖 tslint 对代码检查 |
|
|
148
|
+
| test | 依赖 jest 测试代码 |
|
|
149
|
+
| push | 用指定 message 提交代码并推送至远程 |
|
|
150
|
+
| release [`<verson>`\|`patch`\|`minor`\|`major`] -- [`--alpha`\|`--beta`\|`--rc`] [`--all`] [`--otp code`] | 生成新的 `主`\|`次`\|`批` 版本号,推送远程仓库后,并发布至 npm 仓 <blockquote><li> --alpha: 预发布内部版本</li><li> --beta: 预发布公测版本</li><li> -rc: 预发布候选版本</li><li> -all: 提交全部修改</li><li> -otp `<code>`: 如果指定一次性口令,则直接发布到 npm 中心仓,否则不发布</li></blockquote> |
|
|
159
151
|
|
|
160
152
|
## License
|
|
161
153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffchi/logger",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0-rc.1",
|
|
4
4
|
"main": "lib/index.cjs",
|
|
5
5
|
"module": "lib/index.mjs",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,13 +37,7 @@
|
|
|
37
37
|
"push": "git commit -m",
|
|
38
38
|
"postpush": "git push",
|
|
39
39
|
"prepublishOnly": "npm run test main && npm run lint",
|
|
40
|
-
"
|
|
41
|
-
"version": "npm run format && git add -A src",
|
|
42
|
-
"postversion": "git push && git push --tags",
|
|
43
|
-
"release": "cross-env-shell standard-version --prerelease $npm_config_pre --release-as ",
|
|
44
|
-
"postrelease": "git push --follow-tags && npm publish --tag $npm_config_pre",
|
|
45
|
-
"release:all": "cross-env-shell standard-version -a --prerelease %npm_config_pre% --release-as ",
|
|
46
|
-
"postrelease:all": "git push --follow-tags && npm publish $npm_config_pre"
|
|
40
|
+
"release": "node release"
|
|
47
41
|
},
|
|
48
42
|
"author": "jeffery·chiang",
|
|
49
43
|
"license": "MIT",
|
|
@@ -60,7 +54,7 @@
|
|
|
60
54
|
],
|
|
61
55
|
"standard-version": {
|
|
62
56
|
"scripts": {
|
|
63
|
-
"prerelease": "npm run format && git add -A ."
|
|
57
|
+
"prerelease": "npm run lint && npm run format && git add -A ."
|
|
64
58
|
}
|
|
65
59
|
},
|
|
66
60
|
"peerDependencies": {
|
|
@@ -77,6 +71,7 @@
|
|
|
77
71
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
78
72
|
"@types/jest": "^29.2.5",
|
|
79
73
|
"@types/node": "^18.11.18",
|
|
74
|
+
"@types/standard-version": "^7.0.1",
|
|
80
75
|
"babel-preset-env": "^1.7.0",
|
|
81
76
|
"commitizen": "^4.2.6",
|
|
82
77
|
"cross-env": "^7.0.3",
|
|
@@ -90,6 +85,7 @@
|
|
|
90
85
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
91
86
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
92
87
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
88
|
+
"shelljs": "^0.8.5",
|
|
93
89
|
"standard-version": "^9.5.0",
|
|
94
90
|
"ts-jest": "^29.0.5",
|
|
95
91
|
"tslib": "^2.4.1",
|