meixifrontserve 2.0.78 → 2.0.79

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
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env node
1
+ #! /usr/bin/env node
2
2
  const {program} = require('commander');
3
3
  const EnvByTestServerController = require('../scripts/envByTestServerController')
4
4
  const EnvByDevServerController = require('../scripts/envByDevServerController')
@@ -44,8 +44,9 @@ program.parse();
44
44
  const run = async () => {
45
45
 
46
46
  const programOps = program.opts();
47
- const {name, env, flag} = programOps
48
- const v2 = flag==='true';
47
+ const {name, env, flag, prod} = programOps
48
+ const v2 = flag === 'true';
49
+ const isProd = prod === 'true';
49
50
  // 如果是开发
50
51
  if (programOps.ServeByDev || programOps.ServeByDevNotCheck) {
51
52
  // 检查更新
@@ -63,32 +64,32 @@ const run = async () => {
63
64
  // 检查更新
64
65
  let flag = programOps.ServeByTest ? await checkUpdate() : true;
65
66
  if (flag) {
66
- let envByServerController = new EnvByTestServerController(name,v2);
67
+ let envByServerController = new EnvByTestServerController(name, v2);
67
68
  await envByServerController.onStart();
68
69
  }
69
70
 
70
71
  } else if (programOps.Beta) {
71
- let envByBetaController = new EnvByBetaController(name, 'beta',v2);
72
+ let envByBetaController = new EnvByBetaController(name, 'beta', v2);
72
73
  await envByBetaController.onStart();
73
74
 
74
75
  } else if (programOps.Testing) {
75
- let envByTestController = new EnvByTestController(name, 'testing',v2);
76
+ let envByTestController = new EnvByTestController(name, 'testing', v2);
76
77
  await envByTestController.onStart();
77
78
  } else if (programOps.Test2ing) {
78
- let envByTestController = new EnvByTest2Controller(name, 'test2ing',v2);
79
+ let envByTestController = new EnvByTest2Controller(name, 'test2ing', v2);
79
80
  await envByTestController.onStart();
80
81
  } else if (programOps.Test3ing) {
81
- let envByTestController = new EnvByTest3Controller(name, 'test3ing',v2);
82
+ let envByTestController = new EnvByTest3Controller(name, 'test3ing', v2);
82
83
  await envByTestController.onStart();
83
84
  } else if (programOps.Pre) {
84
- let envByPreController = new EnvByPreController(name, 'pre',v2);
85
+ let envByPreController = new EnvByPreController(name, 'pre', v2);
85
86
  await envByPreController.onStart();
86
87
 
87
88
  } else if (programOps.Pre2) {
88
- let envByPre2Controller = new EnvByPre2Controller(name, 'pre2',v2);
89
+ let envByPre2Controller = new EnvByPre2Controller(name, 'pre2', v2);
89
90
  await envByPre2Controller.onStart();
90
91
  } else if (programOps.Prod) {
91
- let envByProdController = new EnvByProdController(name, 'prod', v2);
92
+ let envByProdController = new EnvByProdController(name, 'prod', v2, isProd);
92
93
  await envByProdController.onStart();
93
94
 
94
95
  } else if (programOps.RollupBuild) {
@@ -51,7 +51,7 @@
51
51
  "vue-cropper": "^0.5.8",
52
52
  "vue-router": "3.0.2",
53
53
  "vuex": "^3.4.0",
54
- "meixioacomponent": "^1.1.61",
54
+ "meixioacomponent": "^1.1.62",
55
55
  "meixisuperdrawer": "^0.3.1",
56
56
  "@vue/cli-plugin-babel": "~4.5.19",
57
57
  "@vue/cli-plugin-eslint": "~4.5.19",
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "newoaadmin",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "serve": "vue-cli-service serve",
7
+ "build:beta": "vue-cli-service build --mode beta",
8
+ "build:testing": "vue-cli-service build --mode testing",
9
+ "build:pre": "vue-cli-service build --mode pre",
10
+ "build:prod": "vue-cli-service build --mode prod",
11
+ "rollupBuild": "sudo meixirollupbuild -b / --pathTarget src/pages/ordermanage/oaorder/index.js-lib/oaOrderIndex.umd.js",
12
+ "lint": "eslint --ext .js,.vue,.ts,.tsx src",
13
+ "fix:lint": "eslint --fix --ext .js,.vue,.ts,.tsx src",
14
+ "prepare": "husky install",
15
+ "lint:lint-staged": "lint-staged",
16
+ "git": "npm run fix:lint && git add . && cz",
17
+ "commit": "cz"
18
+ },
19
+ "dependencies": {
20
+ "@babel/plugin-proposal-optional-chaining": "^7.18.9",
21
+ "@wangeditor/editor": "^5.1.14",
22
+ "@wangeditor/editor-for-vue": "^1.0.2",
23
+ "@wangeditor/plugin-md": "^1.0.0",
24
+ "async_hooks": "^1.0.0",
25
+ "axios": "^0.26.0",
26
+ "babel-helper-vue-jsx-merge-props": "^2.0.3",
27
+ "babel-plugin-transform-vue-jsx": "^3.7.0",
28
+ "babel-preset-env": "^1.7.0",
29
+ "core-js": "^3.6.5",
30
+ "crypto-js": "^3.1.9-1",
31
+ "dayjs": "^1.11.2",
32
+ "element-ui": "^2.15.6",
33
+ "js-md5": "^0.7.3",
34
+ "meixiappmain": "0.4.8",
35
+ "meixicheckgoodstable": "0.1.2",
36
+ "meixicheckstaff": "^0.2.3",
37
+ "meixidialogtablecheck": "^0.3.4",
38
+ "meixiexpresscheck": "0.0.6",
39
+ "meixigoodstablecontrol": "^0.3.46",
40
+ "meixihandlerecorde": "0.0.8",
41
+ "meixihelpmenu": "0.0.2",
42
+ "meixilayout": "^0.4.4",
43
+ "meixirequestts": "^0.2.2",
44
+ "meixistepbar": "0.0.6",
45
+ "meixiverifyflowinfo": "0.1.1",
46
+ "meixiordertypebutton": "0.0.1",
47
+ "path": "^0.12.7",
48
+ "register-service-worker": "^1.7.2",
49
+ "v-click-outside": "^3.2.0",
50
+ "vue": "^2.7.10",
51
+ "vue-cropper": "^0.5.8",
52
+ "vue-router": "3.0.2",
53
+ "vuex": "^3.4.0",
54
+ "meixioacomponent": "^1.1.61",
55
+ "meixisuperdrawer": "^0.3.1",
56
+ "@vue/cli-plugin-babel": "~4.5.19",
57
+ "@vue/cli-plugin-eslint": "~4.5.19",
58
+ "@vue/cli-plugin-router": "~4.5.13",
59
+ "@vue/cli-plugin-vuex": "~4.5.13",
60
+ "@vue/cli-service": "~4.5.19",
61
+ "@vue/eslint-config-standard": "^5.1.2",
62
+ "@vuepress/plugin-pwa": "^1.9.7",
63
+ "babel-eslint": "^10.1.0",
64
+ "babel-plugin-component": "^1.1.1",
65
+ "eslint-plugin-node": "^11.1.0",
66
+ "eslint-plugin-standard": "^4.0.0",
67
+ "vue-template-compiler": "^2.7.10",
68
+ "husky": "^8.0.2",
69
+ "prettier": "^2.8.1",
70
+ "@vue/eslint-config-prettier": "^7.0.0",
71
+ "commitizen": "^4.2.6",
72
+ "eslint": "^8.30.0",
73
+ "eslint-config-standard-with-typescript": "^24.0.0",
74
+ "eslint-plugin-import": "^2.26.0",
75
+ "eslint-plugin-n": "^15.6.0",
76
+ "eslint-plugin-promise": "^6.1.1",
77
+ "eslint-plugin-vue": "^9.8.0",
78
+ "@commitlint/cli": "^17.3.0",
79
+ "@commitlint/config-conventional": "^17.3.0",
80
+ "@commitlint/cz-commitlint": "^17.3.0",
81
+ "cz-conventional-changelog": "^3.3.0",
82
+ "lint-staged": "^13.1.0",
83
+ "meixirouterplugin":"0.0.9"
84
+ },
85
+ "devDependencies": {
86
+ "less": "^3.13.1",
87
+ "less-loader": "^5.0.0",
88
+ "style-resources-loader": "^1.5.0",
89
+ "svg-sprite-loader": "4.1.3"
90
+ },
91
+ "browserslist": [
92
+ "> 1%",
93
+ "last 2 versions",
94
+ "not dead"
95
+ ]
96
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "newoaadmin",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "serve": "vue-cli-service serve",
7
+ "build:beta": "vue-cli-service build --mode beta",
8
+ "build:testing": "vue-cli-service build --mode testing",
9
+ "build:pre": "vue-cli-service build --mode pre",
10
+ "build:prod": "vue-cli-service build --mode prod",
11
+ "rollupBuild": "sudo meixirollupbuild -b / --pathTarget src/pages/ordermanage/oaorder/index.js-lib/oaOrderIndex.umd.js",
12
+ "lint": "eslint --ext .js,.vue,.ts,.tsx src",
13
+ "fix:lint": "eslint --fix --ext .js,.vue,.ts,.tsx src",
14
+ "prepare": "husky install",
15
+ "lint:lint-staged": "lint-staged",
16
+ "git": "npm run fix:lint && git add . && cz",
17
+ "commit": "cz"
18
+ },
19
+ "dependencies": {
20
+ "@babel/plugin-proposal-optional-chaining": "^7.18.9",
21
+ "@wangeditor/editor": "^5.1.14",
22
+ "@wangeditor/editor-for-vue": "^1.0.2",
23
+ "@wangeditor/plugin-md": "^1.0.0",
24
+ "async_hooks": "^1.0.0",
25
+ "axios": "^0.26.0",
26
+ "babel-helper-vue-jsx-merge-props": "^2.0.3",
27
+ "babel-plugin-transform-vue-jsx": "^3.7.0",
28
+ "babel-preset-env": "^1.7.0",
29
+ "core-js": "^3.6.5",
30
+ "crypto-js": "^3.1.9-1",
31
+ "dayjs": "^1.11.2",
32
+ "js-md5": "^0.7.3",
33
+ "meixiappmain": "2.0.23",
34
+ "meixicheckgoodstable": "2.0.12",
35
+ "meixicheckstaff": "2.0.13",
36
+ "meixidialogtablecheck": "2.0.11",
37
+ "meixiexpresscheck": "2.0.1",
38
+ "meixihandlerecorde": "0.0.8",
39
+ "meixirequestts": "0.2.2",
40
+ "meixistepbar": "2.0.11",
41
+ "meixiverifyflowinfo": "0.1.0",
42
+ "meixisuperdrawer": "0.3.1",
43
+ "meixigoodstablecontrol": "2.0.1",
44
+ "meixihelpmenu": "2.0.1",
45
+ "meixilayout": "2.0.44",
46
+ "meixiordertypebutton": "2.0.12",
47
+ "meixioacomponent": "2.0.48",
48
+ "path": "^0.12.7",
49
+ "register-service-worker": "^1.7.2",
50
+ "v-click-outside": "^3.2.0",
51
+ "vue": "^2.7.10",
52
+ "vue-cropper": "^0.5.8",
53
+ "vue-router": "3.0.2",
54
+ "vuex": "^3.4.0",
55
+ "@vue/cli-plugin-babel": "~4.5.19",
56
+ "@vue/cli-plugin-eslint": "~4.5.19",
57
+ "@vue/cli-plugin-router": "~4.5.13",
58
+ "@vue/cli-plugin-vuex": "~4.5.13",
59
+ "@vue/cli-service": "~4.5.19",
60
+ "@vue/eslint-config-standard": "^5.1.2",
61
+ "@vuepress/plugin-pwa": "^1.9.7",
62
+ "babel-eslint": "^10.1.0",
63
+ "babel-plugin-component": "^1.1.1",
64
+ "eslint-plugin-node": "^11.1.0",
65
+ "eslint-plugin-standard": "^4.0.0",
66
+ "vue-template-compiler": "^2.7.10",
67
+ "husky": "^8.0.2",
68
+ "prettier": "^2.8.1",
69
+ "@vue/eslint-config-prettier": "^7.0.0",
70
+ "commitizen": "^4.2.6",
71
+ "eslint": "^8.30.0",
72
+ "eslint-config-standard-with-typescript": "^24.0.0",
73
+ "eslint-plugin-import": "^2.26.0",
74
+ "eslint-plugin-n": "^15.6.0",
75
+ "eslint-plugin-promise": "^6.1.1",
76
+ "eslint-plugin-vue": "^9.8.0",
77
+ "@commitlint/cli": "^17.3.0",
78
+ "@commitlint/config-conventional": "^17.3.0",
79
+ "@commitlint/cz-commitlint": "^17.3.0",
80
+ "cz-conventional-changelog": "^3.3.0",
81
+ "lint-staged": "^13.1.0",
82
+ "tdesign-vue": "^1.10.5-naruto",
83
+ "meixirouterplugin":"2.0.9"
84
+ },
85
+ "devDependencies": {
86
+ "less": "^3.13.1",
87
+ "less-loader": "^5.0.0",
88
+ "style-resources-loader": "^1.5.0",
89
+ "svg-sprite-loader": "4.1.3"
90
+ },
91
+ "browserslist": [
92
+ "> 1%",
93
+ "last 2 versions",
94
+ "not dead"
95
+ ]
96
+ }
@@ -44,7 +44,7 @@
44
44
  "meixihelpmenu": "2.0.1",
45
45
  "meixilayout": "2.0.44",
46
46
  "meixiordertypebutton": "2.0.12",
47
- "meixioacomponent": "2.0.48",
47
+ "meixioacomponent": "2.0.49",
48
48
  "path": "^0.12.7",
49
49
  "register-service-worker": "^1.7.2",
50
50
  "v-click-outside": "^3.2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixifrontserve",
3
- "version": "2.0.78",
3
+ "version": "2.0.79",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "private": false,
@@ -14,8 +14,8 @@ const shell = require('shelljs');
14
14
  // 打包环境
15
15
  class EnvByBuildController extends ServerController {
16
16
 
17
- constructor(projectName, envType, isV2 = false) {
18
- super(projectName, isV2);
17
+ constructor(projectName, envType, isV2 = false, isProd = false) {
18
+ super(projectName, isV2, isProd);
19
19
  this.port = 8888;
20
20
  this.envName = '';
21
21
  this.envType = envType;
@@ -2,8 +2,8 @@ const EnvByBuildController = require('./envByBuildController');
2
2
 
3
3
 
4
4
  class EnvByProdController extends EnvByBuildController {
5
- constructor(projectName, envType,isV2 = false) {
6
- super(projectName, envType,isV2);
5
+ constructor(projectName, envType, isV2 = false, isProd = false) {
6
+ super(projectName, envType, isV2,isProd);
7
7
  this.envName = 'production'
8
8
  this.envType = 'prod'
9
9
  this.verName = 'prod'
@@ -4,13 +4,19 @@ const getEnvFileTemplate = require('../config/envFileTemplate');
4
4
 
5
5
  const packageJson = require('../config/package.json');
6
6
  const packageV2Json = require("../config/packageV2.json");
7
+
8
+
9
+ const packageJsonByProd = require('../config/packageByProd/package.json');
10
+ const packageV2JsonByProd = require('../config/packageByProd/packageV2.json');
11
+
12
+
7
13
  const path = require("path");
8
14
  const fs = require("fs");
9
15
 
10
16
 
11
17
  class ServeController {
12
18
  // 项目名称
13
- constructor(projectName, isV2 = false) {
19
+ constructor(projectName, isV2 = false, isProd = false) {
14
20
  this.verName = '';
15
21
  this.projectName = projectName;
16
22
 
@@ -19,28 +25,19 @@ class ServeController {
19
25
  this.checkProjectExist();
20
26
 
21
27
  this.v2 = isV2;
28
+ this.isProd = isProd;
22
29
 
23
30
  }
24
31
 
25
32
 
26
33
  async onStart() {
27
34
  let fileContent = await this.createEnvFiles();
28
-
29
-
30
35
  if (fileContent) {
31
-
32
36
  this.writeEnvFile(fileContent);
33
-
34
37
  this.writePackageJson();
35
-
36
38
  return true;
37
-
38
-
39
39
  }
40
-
41
40
  return false;
42
-
43
-
44
41
  }
45
42
 
46
43
  // 生成对应的环境模版文件
@@ -60,7 +57,12 @@ class ServeController {
60
57
  writePackageJson() {
61
58
  const press = process.cwd();
62
59
  const fileUrl = path.join(press, `./package.json`);
63
- const _packageJson = this.v2 ? packageV2Json : packageJson;
60
+ let _packageJson = null;
61
+ if (this.isProd) {
62
+ _packageJson = this.v2 ? packageV2JsonByProd : packageJsonByProd;
63
+ } else {
64
+ _packageJson = this.v2 ? packageV2Json : packageJson;
65
+ }
64
66
  // 读取本地json文件 dependencies.json
65
67
  let flag = fs.existsSync('./dependencies.json');
66
68
  if (flag) {
@@ -80,20 +82,16 @@ class ServeController {
80
82
 
81
83
  // 检查是否存在当前的项目
82
84
  checkProjectExist() {
83
-
84
85
  this.projectParams = projectConfig[`${this.projectName}`];
85
86
  if (!this.projectParams) {
86
87
  console.log('应用名称错误,请重新输入应用名称,程序退出!');
87
88
  process.exit();
88
89
  return false;
89
-
90
90
  }
91
-
92
-
93
91
  }
94
92
 
95
93
 
96
- // 跑服务
94
+ // 跑服务
97
95
  onRunServe() {
98
96
 
99
97