aiot-toolkit 2.1.0-prender.1 → 2.1.0-prender.2

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.
@@ -2,13 +2,11 @@ import { IParam } from '@aiot-toolkit/commander';
2
2
  import IBuilder from './IBuilder';
3
3
  import UxBuilderBase from './UxBuilderBase';
4
4
  import IVelaUxBuilderOption from '../interface/IVelaUxBuilderOption';
5
- import { IJavascriptCompileOption } from '@aiot-toolkit/aiotpack';
6
5
  /**
7
6
  * VelaUxBuilder
8
7
  */
9
8
  declare class VelaUxBuilder extends UxBuilderBase<IVelaUxBuilderOption> implements IBuilder<IVelaUxBuilderOption> {
10
9
  params: IParam[];
11
10
  match(projectPath: string): boolean;
12
- getCompilerOption(projectPath: string, options: IVelaUxBuilderOption): Partial<IJavascriptCompileOption>;
13
11
  }
14
12
  export default VelaUxBuilder;
@@ -16,19 +16,5 @@ class VelaUxBuilder extends _UxBuilderBase.default {
16
16
  match(projectPath) {
17
17
  return _sharedUtils.ProjectType.getProjectType(projectPath) === _sharedUtils.ProjectType.VELA_UX;
18
18
  }
19
- getCompilerOption(projectPath, options) {
20
- const compilerOption = super.getCompilerOption(projectPath, options);
21
-
22
- // --no-prerender → enablePrerender: false
23
- if (options.noPrerender) {
24
- compilerOption.enablePrerender = false;
25
- }
26
-
27
- // --prerender-exclude "a,b" → prerenderExclude: ['a', 'b']
28
- if (typeof options.prerenderExclude === 'string' && options.prerenderExclude) {
29
- compilerOption.prerenderExclude = options.prerenderExclude.split(',').map(s => s.trim()).filter(Boolean);
30
- }
31
- return compilerOption;
32
- }
33
19
  }
34
20
  var _default = exports.default = VelaUxBuilder;
@@ -66,14 +66,6 @@ interface IVelaUxBuilderOption extends IUxBuildOption {
66
66
  * 删除 console. <br/>+ `true`: 全部删除 <br/>+ `false`: 不删除. <br/>+ string: 自定义. <br/>示例:`--drop-console=warn,error` ,`--drop-console=true`
67
67
  */
68
68
  dropConsole?: string;
69
- /**
70
- * 禁用预渲染
71
- */
72
- noPrerender?: boolean;
73
- /**
74
- * 排除不预渲染的页面路径,逗号分隔
75
- */
76
- prerenderExclude?: string;
77
69
  }
78
70
  declare const velaUxBuilderParams: IParam[];
79
71
  export { velaUxBuilderParams };
@@ -80,13 +80,4 @@ const velaUxBuilderParams = exports.velaUxBuilderParams = [{
80
80
  "name": "drop-console",
81
81
  "description": "drop console. true: drop all, false: do nothing, string: custom. example: --drop-console warn,error",
82
82
  "defaultValue": false
83
- }, {
84
- "type": "confirm",
85
- "name": "no-prerender",
86
- "description": "disable prerender",
87
- "defaultValue": false
88
- }, {
89
- "type": "string",
90
- "name": "prerender-exclude",
91
- "description": "exclude pages from prerender, comma-separated. example: --prerender-exclude pages/Dynamic,pages/Live"
92
83
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiot-toolkit",
3
- "version": "2.1.0-prender.1",
3
+ "version": "2.1.0-prender.2",
4
4
  "description": "Tools for creating, developing, and packaging aiot applications.",
5
5
  "keywords": [
6
6
  "aiot"
@@ -22,14 +22,14 @@
22
22
  "test": "node ./__tests__/aiot-toolkit.test.js"
23
23
  },
24
24
  "dependencies": {
25
- "@aiot-toolkit/aiotpack": "2.1.0-prender.1",
26
- "@aiot-toolkit/commander": "2.1.0-prender.1",
27
- "@aiot-toolkit/emulator": "2.1.0-prender.1",
28
- "@aiot-toolkit/shared-utils": "2.1.0-prender.1",
25
+ "@aiot-toolkit/aiotpack": "2.1.0-prender.2",
26
+ "@aiot-toolkit/commander": "2.1.0-prender.2",
27
+ "@aiot-toolkit/emulator": "2.1.0-prender.2",
28
+ "@aiot-toolkit/shared-utils": "2.1.0-prender.2",
29
29
  "@inquirer/prompts": "^5.3.0",
30
30
  "@miwt/adb": "^0.9.0",
31
31
  "axios": "^1.7.4",
32
- "file-lane": "2.1.0-prender.1",
32
+ "file-lane": "2.1.0-prender.2",
33
33
  "fs-extra": "^11.2.0",
34
34
  "koa-router": "^13.0.1",
35
35
  "lodash": "^4.17.21",
@@ -43,5 +43,5 @@
43
43
  "@types/qr-image": "^3.2.9",
44
44
  "@types/semver": "^7.5.8"
45
45
  },
46
- "gitHead": "8bb39a59fbe7a7c22c1167e69d44c78024330cec"
46
+ "gitHead": "a0849da638ea3a9a6abb95a9cbcad400cbb6903a"
47
47
  }