jiek 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +18 -3
- package/dist/cli-only-build.cjs +1 -1
- package/dist/cli-only-build.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -56,11 +56,26 @@ yarn add -D jiek
|
|
56
56
|
}
|
57
57
|
```
|
58
58
|
|
59
|
-
- 假设你在工作空间下有一个包名字为 `@monorepo/utils` ,那么你可以运行 `
|
59
|
+
- 假设你在工作空间下有一个包名字为 `@monorepo/utils` ,那么你可以运行 `jk -f utils build` 来构建这个包。
|
60
60
|
|
61
|
-
-
|
61
|
+
- 当需要发布当前的包的时候,首先你可以通过 `jk -f utils prepublish` 来准备发布内容,然后再运行 `jk -f utils publish` 来发布,最后通过 `jk -f utils postpublish` 来清理发布内容。
|
62
62
|
|
63
|
-
|
63
|
+
- 当然可能你会觉得上面的操作有点繁琐,你可以通过在对应包的 `package.json` 中添加 `scripts` 来简化操作。
|
64
|
+
|
65
|
+
```json
|
66
|
+
{
|
67
|
+
...
|
68
|
+
"scripts": {
|
69
|
+
"prepublish": "jb && jk",
|
70
|
+
"postpublish": "jk"
|
71
|
+
},
|
72
|
+
...
|
73
|
+
}
|
74
|
+
```
|
75
|
+
|
76
|
+
> 在你的 dist 产物目录(可配置)下会生成一个 `package.json` 文件,如果你需要在发布前对要发布的内容进行检查,你可以通过 `prepublish` 子指令来生成发布内容并在对应的输出目录中进行检查。
|
77
|
+
|
78
|
+
- 当配置好了上述的 hook 后,通过 `jk publish` 就可以一键完成构建发布动作了。
|
64
79
|
|
65
80
|
## CLI
|
66
81
|
|
package/dist/cli-only-build.cjs
CHANGED
@@ -116,7 +116,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
|
|
116
116
|
|
117
117
|
var name = "jiek";
|
118
118
|
var type = "module";
|
119
|
-
var version = "2.0
|
119
|
+
var version = "2.1.0";
|
120
120
|
var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
|
121
121
|
var author = "YiJie <yijie4188@gmail.com>";
|
122
122
|
var repository = {
|
package/dist/cli-only-build.js
CHANGED
@@ -108,7 +108,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
|
|
108
108
|
|
109
109
|
var name = "jiek";
|
110
110
|
var type = "module";
|
111
|
-
var version = "2.0
|
111
|
+
var version = "2.1.0";
|
112
112
|
var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
|
113
113
|
var author = "YiJie <yijie4188@gmail.com>";
|
114
114
|
var repository = {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "jiek",
|
3
3
|
"type": "module",
|
4
|
-
"version": "2.1.
|
4
|
+
"version": "2.1.1",
|
5
5
|
"description": "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.",
|
6
6
|
"author": "YiJie <yijie4188@gmail.com>",
|
7
7
|
"repository": {
|