@next-core/build-config-factory 2.24.7 → 2.25.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/package.json +2 -2
- package/src/generateBrickDocs.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/build-config-factory",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "build config factory",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/build-config-factory",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"typedoc": "^0.19.2",
|
|
35
35
|
"typedoc-plugin-no-inherit": "^1.2.2"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2865672f6218c3205652559cc766509e71c8e4ac"
|
|
38
38
|
}
|
package/src/generateBrickDocs.js
CHANGED
|
@@ -23,6 +23,8 @@ const propertyDocComments = [
|
|
|
23
23
|
"description",
|
|
24
24
|
"group",
|
|
25
25
|
"enums",
|
|
26
|
+
"editor",
|
|
27
|
+
"editorprops",
|
|
26
28
|
];
|
|
27
29
|
const baseDocComments = [
|
|
28
30
|
"id",
|
|
@@ -73,6 +75,11 @@ function convertTagsToMapByFields(tags, fields) {
|
|
|
73
75
|
return prev;
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
if (curr.tag === "editor") {
|
|
79
|
+
prev["editor"] = curr.text;
|
|
80
|
+
return prev;
|
|
81
|
+
}
|
|
82
|
+
|
|
76
83
|
// 如果有`@deprecated`注解,强制转换为true
|
|
77
84
|
if (curr.tag === "deprecated") {
|
|
78
85
|
prev[curr.tag] = true;
|