@jeffchi/logger 3.1.0-rc.0 → 3.1.0
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 +11 -11
- package/package.json +64 -2
package/README.md
CHANGED
|
@@ -140,17 +140,17 @@ export interface ILogOptions {
|
|
|
140
140
|
npm run name
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
| 脚本名称
|
|
144
|
-
|
|
|
145
|
-
| clear
|
|
146
|
-
| doc
|
|
147
|
-
| dev
|
|
148
|
-
| build
|
|
149
|
-
| format
|
|
150
|
-
| lint
|
|
151
|
-
| test
|
|
152
|
-
| push
|
|
153
|
-
| release [`<verson>`\|`patch`\|`minor`\|`major`] -- [`--alpha`\|`--beta`\|`--rc`] [`--all`] [
|
|
143
|
+
| 脚本名称 | 说明 |
|
|
144
|
+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
145
|
+
| clear | 清理 `lib/` `docs/` `build/`临时目录 |
|
|
146
|
+
| doc | 利用 typedoc 生成 api 文档,位于`docs/`目录下 |
|
|
147
|
+
| dev | 启动开发模式 |
|
|
148
|
+
| build | 执行构建过程 |
|
|
149
|
+
| format | 利用 prettier 格式化 |
|
|
150
|
+
| lint | 依赖 tslint 对代码检查 |
|
|
151
|
+
| test | 依赖 jest 测试代码 |
|
|
152
|
+
| push | 用指定 message 提交代码并推送至远程 |
|
|
153
|
+
| release [`<verson>`\|`patch`\|`minor`\|`major`] -- [`--alpha`\|`--beta`\|`--rc`] [`--all`] [--dry-run] | 生成新的 `主`\|`次`\|`批` 版本号,推送远程仓库后,并发布至 npm 仓 <blockquote><li> --alpha: 预发布内部版本</li><li> --beta: 预发布公测版本</li><li> --rc: 预发布候选版本</li><li> --all: 提交全部修改</li><li> --dry-runn: 预览操作,指定后不会执行真实的发布,否则后续需要提供 opt 口令</li></blockquote> |
|
|
154
154
|
|
|
155
155
|
## 已知问题及解决方案
|
|
156
156
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffchi/logger",
|
|
3
|
-
"version": "3.1.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"main": "lib/index.cjs",
|
|
5
5
|
"module": "lib/index.mjs",
|
|
6
6
|
"browser": "lib/index.cjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
35
35
|
"lint": "tslint -p tsconfig.json",
|
|
36
36
|
"test": "jest --config jestconfig.json",
|
|
37
|
-
"prepush": "
|
|
37
|
+
"prepush": "git add .",
|
|
38
38
|
"push": "git commit -m",
|
|
39
39
|
"postpush": "git push",
|
|
40
40
|
"prepublishOnly": "npm run test main && npm run lint",
|
|
@@ -54,6 +54,68 @@
|
|
|
54
54
|
"lib",
|
|
55
55
|
"*.d.ts"
|
|
56
56
|
],
|
|
57
|
+
"standard-version": {
|
|
58
|
+
"types": [
|
|
59
|
+
{
|
|
60
|
+
"type": "feat",
|
|
61
|
+
"section": "✨ Features | 新功能"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "fix",
|
|
65
|
+
"section": "🐛 Bug Fixes | Bug 修复"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "init",
|
|
69
|
+
"section": "🎉 Init | 初始化"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "docs",
|
|
73
|
+
"section": "✏️ Documentation | 文档"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "style",
|
|
77
|
+
"section": "💄 Styles | 风格"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "refactor",
|
|
81
|
+
"section": "♻️ Code Refactoring | 代码重构"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "perf",
|
|
85
|
+
"section": "⚡ Performance Improvements | 性能优化"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "test",
|
|
89
|
+
"section": "✅ Tests | 测试"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "revert",
|
|
93
|
+
"section": "⏪ Revert | 回退",
|
|
94
|
+
"hidden": true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "build",
|
|
98
|
+
"section": "📦 Build System | 打包构建"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "chore",
|
|
102
|
+
"section": "🚀 Chore | 构建/工程依赖/工具"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "ci",
|
|
106
|
+
"section": "👷 Continuous Integration | CI 配置"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"skip": {
|
|
110
|
+
"bump": true,
|
|
111
|
+
"changelog": true,
|
|
112
|
+
"commit": true,
|
|
113
|
+
"tag": true
|
|
114
|
+
},
|
|
115
|
+
"scripts": {
|
|
116
|
+
"prerelease": "npm run lint && npm run format && git add -A ."
|
|
117
|
+
}
|
|
118
|
+
},
|
|
57
119
|
"peerDependencies": {
|
|
58
120
|
"date-fns": "^2.29.3"
|
|
59
121
|
},
|