@gct-paas/build 0.1.6-dev.8 → 0.1.6

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.
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.PROD_MODE = exports.DEV_MODE = exports.DEFAULT_EXTERNAL = void 0;
7
7
  const DEV_MODE = exports.DEV_MODE = "development";
8
8
  const PROD_MODE = exports.PROD_MODE = "production";
9
- const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = [
9
+ const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = ["@babel/standalone", "esprima-next", "estraverse", "escodegen",
10
10
  // vue 相关依赖
11
11
  "vue", "vue-router", "vue-i18n", "pinia",
12
12
  // 第三方依赖
@@ -18,4 +18,4 @@ const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = [
18
18
  // @gct-paas 底包相关依赖
19
19
  "@gct-paas/api", "@gct-paas/core", "@gct-paas/core-mobile", "@gct-paas/core-web", "@gct-paas/core-pad", "@gct-paas/design", "@gct-paas/design-mobile", "@gct-paas/design-web", "@gct-paas/design-pad", "@gct-paas/render", "@gct-paas/render-mobile", "@gct-paas/render-pad", "@gct-paas/render-web", "@gct-paas/schema", "@gct-paas/scss",
20
20
  // @gct-paas 独立组件库
21
- "@gct-paas/platform-icons", "@gct-paas/vue-pdf", "@gct-paas/vue-video-player"];
21
+ "@gct-paas/platform-icons", "@gct-paas/vue-pdf", "@gct-paas/vue-video-player", "@gct-paas/flow", "@gct-paas/monaco-vue-editor"];
@@ -80,7 +80,19 @@ function defineEslintConfig(...configs) {
80
80
  "@typescript-eslint/no-dynamic-delete": "off",
81
81
  // 其他规则覆盖
82
82
  "class-methods-use-this": "off",
83
- "prefer-destructuring": "off"
83
+ "prefer-destructuring": "off",
84
+ "no-restricted-imports": ["error", {
85
+ paths: [{
86
+ name: "@/index",
87
+ message: "\u7981\u6B62\u4ECE index \u5BFC\u5165\u5185\u5BB9"
88
+ }, {
89
+ name: "@/loader",
90
+ message: "\u7981\u6B62\u4ECE loader \u5BFC\u5165\u5185\u5BB9"
91
+ }, {
92
+ name: "..",
93
+ message: "\u7981\u6B62\u4ECE\u5185\u90E8\u5BFC\u5165\u5185\u5BB9\u81EA\u8EAB\u5185\u5BB9"
94
+ }]
95
+ }]
84
96
  }
85
97
  }, {
86
98
  name: "ts-vue-override",
@@ -1,6 +1,10 @@
1
1
  export const DEV_MODE = "development";
2
2
  export const PROD_MODE = "production";
3
3
  export const DEFAULT_EXTERNAL = [
4
+ "@babel/standalone",
5
+ "esprima-next",
6
+ "estraverse",
7
+ "escodegen",
4
8
  // vue 相关依赖
5
9
  "vue",
6
10
  "vue-router",
@@ -51,5 +55,7 @@ export const DEFAULT_EXTERNAL = [
51
55
  // @gct-paas 独立组件库
52
56
  "@gct-paas/platform-icons",
53
57
  "@gct-paas/vue-pdf",
54
- "@gct-paas/vue-video-player"
58
+ "@gct-paas/vue-video-player",
59
+ "@gct-paas/flow",
60
+ "@gct-paas/monaco-vue-editor"
55
61
  ];
@@ -98,7 +98,26 @@ export function defineEslintConfig(...configs) {
98
98
  "@typescript-eslint/no-dynamic-delete": "off",
99
99
  // 其他规则覆盖
100
100
  "class-methods-use-this": "off",
101
- "prefer-destructuring": "off"
101
+ "prefer-destructuring": "off",
102
+ "no-restricted-imports": [
103
+ "error",
104
+ {
105
+ paths: [
106
+ {
107
+ name: "@/index",
108
+ message: "\u7981\u6B62\u4ECE index \u5BFC\u5165\u5185\u5BB9"
109
+ },
110
+ {
111
+ name: "@/loader",
112
+ message: "\u7981\u6B62\u4ECE loader \u5BFC\u5165\u5185\u5BB9"
113
+ },
114
+ {
115
+ name: "..",
116
+ message: "\u7981\u6B62\u4ECE\u5185\u90E8\u5BFC\u5165\u5185\u5BB9\u81EA\u8EAB\u5185\u5BB9"
117
+ }
118
+ ]
119
+ }
120
+ ]
102
121
  }
103
122
  },
104
123
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/build",
3
- "version": "0.1.6-dev.8",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.cjs",
@@ -29,15 +29,6 @@
29
29
  },
30
30
  "license": "MIT",
31
31
  "author": "gct",
32
- "scripts": {
33
- "build": "unbuild",
34
- "lint": "eslint src/",
35
- "publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
36
- "publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
37
- "publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
38
- "publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
39
- "publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
40
- },
41
32
  "dependencies": {
42
33
  "@commitlint/cli": "^20.4.4",
43
34
  "@commitlint/config-conventional": "^20.4.4",
@@ -99,5 +90,14 @@
99
90
  },
100
91
  "peerDependencies": {
101
92
  "@gct-paas/scss": "*"
93
+ },
94
+ "scripts": {
95
+ "build": "unbuild",
96
+ "lint": "eslint src/",
97
+ "publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
98
+ "publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
99
+ "publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
100
+ "publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
101
+ "publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
102
102
  }
103
- }
103
+ }