@xfe-repo/web-app 1.0.5 → 1.0.7

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/bin/index.js CHANGED
@@ -12,6 +12,8 @@ if(command === 'dev') {
12
12
  require('../scripts/dev')
13
13
  } else if(command === 'build') {
14
14
  require('../scripts/build')
15
+ } else if(command === 'config') {
16
+ require('../scripts/config')
15
17
  } else if(command === 'test') {
16
18
  require('../scripts/test')
17
19
  }
package/deploy/.drone.yml CHANGED
@@ -1,3 +1,4 @@
1
+ # 此文件为@xfe-repo中的web-app项目的部署文件 此处为副本 请勿修改
1
2
  kind: pipeline
2
3
  type: kubernetes
3
4
  name: deploy
@@ -20,7 +21,6 @@ steps:
20
21
  commands:
21
22
  - pnpm config set registry https://registry.npmmirror.com
22
23
  - pnpm i --frozen-lockfile
23
- - cp -r node_modules/@xfe-repo/web-app/deploy deploy
24
24
 
25
25
  - name: build
26
26
  pull: if-not-exists
@@ -34,6 +34,7 @@ steps:
34
34
  path: /drone/src/node_modules
35
35
  commands:
36
36
  - export REACT_APP_RELEASE=$DRONE_REPO_NAME@${DRONE_TAG:CI_COMMIT_SHA}
37
+ - cp -r node_modules/@xfe-repo/web-app/deploy deploy
37
38
  - echo -n "$REACT_APP_RELEASE" > deploy/static/release
38
39
  - pnpm build
39
40
 
@@ -7,10 +7,10 @@ envType: '<<ENV_TYPE>>'
7
7
  hostPrefix: '<<HOST_PREFIX>>'
8
8
  hosts:
9
9
  test:
10
- - '<<HOST_PREFIX>>.pc.t.eshetang.com'
10
+ - 'test.template.com'
11
11
  stage:
12
- - 'stage.pc.t.eshetang.com'
12
+ - 'stage.template.com'
13
13
  prod:
14
- - 'pc.eshetang.com'
14
+ - 'template.com'
15
15
  gateways:
16
16
  - 'common-gateway-eshetang'
package/deploy/nginx.conf CHANGED
@@ -31,6 +31,7 @@ server {
31
31
  location / {
32
32
  try_files $uri $file;
33
33
 
34
+ add_header Cache-Control no-cache;
34
35
  add_header Set-Cookie "apiEnv=${apiEnv}; Max-Age=2626560; Path=/;";
35
36
  }
36
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-app",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "bin": {
5
5
  "xfe-web": "./bin/index.js"
6
6
  },
package/scripts/build.js CHANGED
@@ -11,9 +11,6 @@ process.on("unhandledRejection", (err) => {
11
11
  throw err;
12
12
  });
13
13
 
14
- // 加载配置
15
- require("./config");
16
-
17
14
  // Ensure environment variables are read.
18
15
  require("../config/env");
19
16
 
package/scripts/dev.js CHANGED
@@ -11,9 +11,6 @@ process.on("unhandledRejection", (err) => {
11
11
  throw err;
12
12
  });
13
13
 
14
- // 加载配置
15
- require("./config");
16
-
17
14
  // Ensure environment variables are read.
18
15
  require("../config/env");
19
16
 
package/scripts/devSSR.js CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  process.env.NODE_ENV = 'development'
4
4
 
5
- // 加载配置
6
- require("./config");
7
-
8
5
  const chalk = require('chalk')
9
6
  const webpack = require('webpack')
10
7
  const nodemon = require('nodemon')