@winner-fed/winner-deploy 3.3.2 → 3.3.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@winner-fed/winner-deploy",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Generate a publication deployed by the See platform",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"winner",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"prettier": "^2.1.2"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
|
-
"access": "public"
|
|
73
|
+
"access": "public",
|
|
74
|
+
"registry": "https://registry.npmjs.org/"
|
|
74
75
|
}
|
|
75
76
|
}
|
package/src/genDockerPackage.js
CHANGED
|
@@ -51,15 +51,15 @@ exports.genDockerPackage = function genDockerPackage (seePackageName, options, h
|
|
|
51
51
|
fs.ensureDirSync(`${tmp}/template`)
|
|
52
52
|
|
|
53
53
|
if (isWinnerProject()) {
|
|
54
|
-
fs.outputFileSync(`./${tmp}/template/config.local.js`, template ? genTemplate(template, variables) : '')
|
|
54
|
+
fs.outputFileSync(`./${tmp}/template/${name}/config.local.js`, template ? genTemplate(template, variables) : '')
|
|
55
55
|
} else if (isProProject() || isProProject(name)) { // 子包目录 dist/'name'/sysconfig.js
|
|
56
56
|
// 这里做了默认重写
|
|
57
57
|
// 兼容操作员中心产品
|
|
58
58
|
configFileName = 'sysconfig';
|
|
59
|
-
fs.outputFileSync(`./${tmp}/template/sysconfig.js`, template ? genTemplate(template, variables) : '')
|
|
59
|
+
fs.outputFileSync(`./${tmp}/template/${name}/sysconfig.js`, template ? genTemplate(template, variables) : '')
|
|
60
60
|
} else {
|
|
61
61
|
// 自定义配置文件的名字
|
|
62
|
-
fs.outputFileSync(`./${tmp}/template/${configFileName}.js`, template ? genTemplate(template, variables) : '')
|
|
62
|
+
fs.outputFileSync(`./${tmp}/template/${name}/${configFileName}.js`, template ? genTemplate(template, variables) : '')
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// 生成 k8s-deploy-res.yaml
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
<variables describe="集群基本参数">
|
|
17
17
|
<field name="user" label="安装用户" type="input">root</field>
|
|
18
18
|
<field name="workspace" label="前端安装目录" type="hidden" tooltip="IAR上存放前端目录" >/home/hsiar/hsiar-green/html</field>
|
|
19
|
-
<field name="webAppName" label="前端应用名" type="input" tooltip="与IAR中的location前端目录名称保持一致">{{ name }}</field>
|
|
20
19
|
|
|
21
20
|
<!-- K8S部署配置 -->
|
|
22
21
|
<field name="division_k8s" label="K8S部署配置" type="division" fold="false">
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
|
|
41
40
|
{{ variables }}
|
|
42
41
|
</variables>
|
|
43
|
-
<config path="
|
|
42
|
+
<config path="./{{ name }}/{{ configFileName }}.js" encoding="UTF-8"/>
|
|
44
43
|
<config reference="" encoding="utf-8" path="./k8s-deploy-res.yaml" />
|
|
45
44
|
<node describe="节点私有配置信息" />
|
|
46
45
|
</system>
|