@xfe-repo/web-app 1.0.16 → 1.0.17
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/deploy/.drone.yml +2 -3
- package/package.json +3 -3
- package/scripts/config.js +2 -3
package/deploy/.drone.yml
CHANGED
|
@@ -14,18 +14,17 @@ trigger:
|
|
|
14
14
|
steps:
|
|
15
15
|
- name: install
|
|
16
16
|
pull: if-not-exists
|
|
17
|
-
image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/node-base:
|
|
17
|
+
image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/node-base:20.17.0-pnpm
|
|
18
18
|
volumes:
|
|
19
19
|
- name: node-modules
|
|
20
20
|
path: /drone/src/node_modules
|
|
21
21
|
commands:
|
|
22
22
|
- pnpm config set registry https://registry.npmmirror.com
|
|
23
|
-
- pnpm i pnpm@9 -g && pnpm -v
|
|
24
23
|
- pnpm i
|
|
25
24
|
|
|
26
25
|
- name: build
|
|
27
26
|
pull: if-not-exists
|
|
28
|
-
image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/node-base:
|
|
27
|
+
image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/node-base:20.17.0-pnpm
|
|
29
28
|
resources:
|
|
30
29
|
limits:
|
|
31
30
|
cpu: 2000
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/web-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"bin": {
|
|
5
5
|
"xfe-web": "./bin/index.js"
|
|
6
6
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"webpack-manifest-plugin": "^4.0.2",
|
|
74
74
|
"workbox-webpack-plugin": "^7.0.0",
|
|
75
75
|
"yaml": "^2.3.4",
|
|
76
|
-
"@xfe-repo/
|
|
77
|
-
"@xfe-repo/
|
|
76
|
+
"@xfe-repo/eslint-config": "0.0.2",
|
|
77
|
+
"@xfe-repo/typescript-config": "0.0.3"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/scripts/config.js
CHANGED
|
@@ -31,13 +31,12 @@ const configDeploy = () => {
|
|
|
31
31
|
// 是否启用virtualService 如果xfe.json中未配置则默认启用
|
|
32
32
|
valuesYaml.virtualService.enabled = typeof virtualServiceEnabled === 'boolean' ? virtualServiceEnabled : true
|
|
33
33
|
|
|
34
|
+
valuesYaml.virtualService.gateways = gateways
|
|
35
|
+
|
|
34
36
|
valuesYaml.virtualService.hosts.prod = hostsProd
|
|
35
37
|
valuesYaml.virtualService.hosts.stage = hostsStage
|
|
36
38
|
valuesYaml.virtualService.hosts.test = hostsTest
|
|
37
39
|
|
|
38
|
-
// gateways 默认为 common-gateway-eshetang
|
|
39
|
-
valuesYaml.gateways = gateways
|
|
40
|
-
|
|
41
40
|
// 修改目标集群
|
|
42
41
|
valuesYaml.targetK8s = targetK8s
|
|
43
42
|
|