@gct-paas/build 0.1.6-dev.9 → 0.1.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/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.7] - 2026-04-03
11
+
12
+ ### Added
13
+
14
+ - 新增外部依赖 @gct-paas/core-components
15
+
16
+ ### Changed
17
+
18
+ - 去掉一些无用包,并升级 typescript 6.0
19
+
10
20
  ## [0.0.1] - 2025-01-07
11
21
 
12
22
  ### Added
@@ -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
  // 第三方依赖
@@ -16,6 +16,6 @@ const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = [
16
16
  // 图标库相关依赖
17
17
  "@ant-design/icons-vue", "@icon-park/vue-next/es/all", "@icon-park/vue-next/icons.json",
18
18
  // @gct-paas 底包相关依赖
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",
19
+ "@gct-paas/api", "@gct-paas/core", "@gct-paas/core-components", "@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", "@gct-paas/flow"];
21
+ "@gct-paas/platform-icons", "@gct-paas/vue-pdf", "@gct-paas/vue-video-player", "@gct-paas/flow", "@gct-paas/monaco-vue-editor"];
@@ -47,17 +47,7 @@ function definePluginViteConfig(opts = {}) {
47
47
  fileName: "[name].[format].min"
48
48
  }
49
49
  },
50
- plugins: [...(0, _imnportExternalPlugin.importMapExternalPlugin)(_constants.DEFAULT_EXTERNAL)
51
- // federation({
52
- // name: 'gct-paas-plugin',
53
- // filename: 'remoteEntry.js',
54
- // dts: false,
55
- // manifest: true,
56
- // exposes: {
57
- // '.': './src/index.ts',
58
- // },
59
- // }),
60
- ]
50
+ plugins: [...(0, _imnportExternalPlugin.importMapExternalPlugin)(_constants.DEFAULT_EXTERNAL)]
61
51
  }), opts);
62
52
  }
63
53
  function defineDesignPluginViteConfig(opts = {}) {
@@ -65,7 +55,8 @@ function defineDesignPluginViteConfig(opts = {}) {
65
55
  server: {
66
56
  port: 7001,
67
57
  host: "0.0.0.0",
68
- allowedHosts: true
58
+ allowedHosts: true,
59
+ cors: true
69
60
  }
70
61
  }), opts);
71
62
  }
@@ -74,7 +65,8 @@ function defineMobilePluginViteConfig(opts = {}) {
74
65
  server: {
75
66
  port: 7002,
76
67
  host: "0.0.0.0",
77
- allowedHosts: true
68
+ allowedHosts: true,
69
+ cors: true
78
70
  }
79
71
  }), opts);
80
72
  }
@@ -83,7 +75,8 @@ function definePadPluginViteConfig(opts = {}) {
83
75
  server: {
84
76
  port: 7003,
85
77
  host: "0.0.0.0",
86
- allowedHosts: true
78
+ allowedHosts: true,
79
+ cors: true
87
80
  }
88
81
  }), opts);
89
82
  }
@@ -92,7 +85,8 @@ function defineWebPluginViteConfig(opts = {}) {
92
85
  server: {
93
86
  port: 7004,
94
87
  host: "0.0.0.0",
95
- allowedHosts: true
88
+ allowedHosts: true,
89
+ cors: true
96
90
  }
97
91
  }), opts);
98
92
  }
@@ -9,7 +9,7 @@ var _nodePath = _interopRequireDefault(require("node:path"));
9
9
  var _simpleGit = require("simple-git");
10
10
  var _util = require("../../util/index.cjs");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const DEV_IMPORT_MAP_PREFIX = ["/plugin-kit/@id/", "/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
12
+ const DEV_IMPORT_MAP_PREFIX = ["/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
13
13
  function injectImportMapPlugin(options = {}) {
14
14
  const {
15
15
  repoUrl = "https://git.gct-china.com/paas/frontend/gct-paas-cdn.git",
@@ -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",
@@ -35,6 +39,7 @@ export const DEFAULT_EXTERNAL = [
35
39
  // @gct-paas 底包相关依赖
36
40
  "@gct-paas/api",
37
41
  "@gct-paas/core",
42
+ "@gct-paas/core-components",
38
43
  "@gct-paas/core-mobile",
39
44
  "@gct-paas/core-web",
40
45
  "@gct-paas/core-pad",
@@ -52,5 +57,6 @@ export const DEFAULT_EXTERNAL = [
52
57
  "@gct-paas/platform-icons",
53
58
  "@gct-paas/vue-pdf",
54
59
  "@gct-paas/vue-video-player",
55
- "@gct-paas/flow"
60
+ "@gct-paas/flow",
61
+ "@gct-paas/monaco-vue-editor"
56
62
  ];
@@ -39,15 +39,6 @@ export function definePluginViteConfig(opts = {}) {
39
39
  },
40
40
  plugins: [
41
41
  ...importMapExternalPlugin(DEFAULT_EXTERNAL)
42
- // federation({
43
- // name: 'gct-paas-plugin',
44
- // filename: 'remoteEntry.js',
45
- // dts: false,
46
- // manifest: true,
47
- // exposes: {
48
- // '.': './src/index.ts',
49
- // },
50
- // }),
51
42
  ]
52
43
  }),
53
44
  opts
@@ -59,7 +50,8 @@ export function defineDesignPluginViteConfig(opts = {}) {
59
50
  server: {
60
51
  port: 7001,
61
52
  host: "0.0.0.0",
62
- allowedHosts: true
53
+ allowedHosts: true,
54
+ cors: true
63
55
  }
64
56
  }),
65
57
  opts
@@ -71,7 +63,8 @@ export function defineMobilePluginViteConfig(opts = {}) {
71
63
  server: {
72
64
  port: 7002,
73
65
  host: "0.0.0.0",
74
- allowedHosts: true
66
+ allowedHosts: true,
67
+ cors: true
75
68
  }
76
69
  }),
77
70
  opts
@@ -83,7 +76,8 @@ export function definePadPluginViteConfig(opts = {}) {
83
76
  server: {
84
77
  port: 7003,
85
78
  host: "0.0.0.0",
86
- allowedHosts: true
79
+ allowedHosts: true,
80
+ cors: true
87
81
  }
88
82
  }),
89
83
  opts
@@ -95,7 +89,8 @@ export function defineWebPluginViteConfig(opts = {}) {
95
89
  server: {
96
90
  port: 7004,
97
91
  host: "0.0.0.0",
98
- allowedHosts: true
92
+ allowedHosts: true,
93
+ cors: true
99
94
  }
100
95
  }),
101
96
  opts
@@ -2,7 +2,7 @@ import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { simpleGit } from "simple-git";
4
4
  import { isBuildPluginEnv } from "../../util/index.mjs";
5
- const DEV_IMPORT_MAP_PREFIX = ["/plugin-kit/@id/", "/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
5
+ const DEV_IMPORT_MAP_PREFIX = ["/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
6
6
  export function injectImportMapPlugin(options = {}) {
7
7
  const {
8
8
  repoUrl = "https://git.gct-china.com/paas/frontend/gct-paas-cdn.git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/build",
3
- "version": "0.1.6-dev.9",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.cjs",
@@ -43,9 +43,7 @@
43
43
  "@commitlint/config-conventional": "^20.4.4",
44
44
  "@eslint/config-helpers": "^0.5.3",
45
45
  "@eslint/js": "^9.39.4",
46
- "@gct-paas/scss": "latest",
47
46
  "@inquirer/prompts": "^8.3.0",
48
- "@module-federation/vite": "^1.13.0",
49
47
  "@vitejs/plugin-vue": "^6.0.5",
50
48
  "@vitejs/plugin-vue-jsx": "^5.1.5",
51
49
  "@vue/compiler-sfc": "^3.5.30",
@@ -76,9 +74,10 @@
76
74
  "stylelint-config-recess-order": "~7.4.0",
77
75
  "stylelint-config-standard-scss": "~16.0.0",
78
76
  "stylelint-scss": "~6.14.0",
77
+ "terser": "^5.46.1",
79
78
  "typescript-eslint": "^8.57.0",
80
79
  "unocss": "66.6.6",
81
- "vite": "^8.0.1",
80
+ "vite": "^8.0.3",
82
81
  "vite-plugin-dts": "^4.5.4",
83
82
  "vite-plugin-lib-inject-css": "^2.2.2",
84
83
  "vite-plugin-static-copy": "^3.3.0",
@@ -94,10 +93,7 @@
94
93
  "@types/node": "^25.5.0",
95
94
  "postcss": "^8.5.8",
96
95
  "tsx": "^4.21.0",
97
- "typescript": "^5.9.3",
96
+ "typescript": "^6.0.2",
98
97
  "unbuild": "^3.6.1"
99
- },
100
- "peerDependencies": {
101
- "@gct-paas/scss": "*"
102
98
  }
103
99
  }