@cloudbase/framework-plugin-low-code 1.1.1 → 1.1.3
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/lib/index.js +17 -17
- package/lib/mpPlugin.d.ts +1 -0
- package/lib/mpPlugin.d.ts.map +1 -1
- package/lib/mpPlugin.js +3 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -567,23 +567,6 @@ class LowCodePlugin extends framework_core_1.Plugin {
|
|
|
567
567
|
else {
|
|
568
568
|
yield this._postProcessWebsiteConfig();
|
|
569
569
|
}
|
|
570
|
-
try {
|
|
571
|
-
let publishAppCustomNavRes = yield this.api.cloudbaseManager.commonService('lowcode', '2021-01-08').call({
|
|
572
|
-
Action: 'PublishAppCustomNav',
|
|
573
|
-
Param: {
|
|
574
|
-
WeAppId: this._resolvedInputs.appId,
|
|
575
|
-
EnvId: this.api.envId,
|
|
576
|
-
PublishType: this._resolvedInputs.deployOptions.mode === lowcode_builder_1.DEPLOY_MODE.UPLOAD ? 'product' : 'preview',
|
|
577
|
-
},
|
|
578
|
-
});
|
|
579
|
-
this.api.logger.info(`${this.api.emoji('🚀')} custom publish success: ${JSON.stringify(publishAppCustomNavRes)}`);
|
|
580
|
-
}
|
|
581
|
-
catch (e) {
|
|
582
|
-
this.api.logger.error(`${this.api.emoji('🚀')} custom publish fail: ${JSON.stringify(e)}`);
|
|
583
|
-
if ((e === null || e === void 0 ? void 0 : e.code) !== 'ResourceNotFound') {
|
|
584
|
-
throw e;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
570
|
try {
|
|
588
571
|
const { deployOptions, appId } = this._resolvedInputs;
|
|
589
572
|
const isPreview = (deployOptions === null || deployOptions === void 0 ? void 0 : deployOptions.mode) === lowcode_builder_1.DEPLOY_MODE.PREVIEW;
|
|
@@ -610,6 +593,23 @@ class LowCodePlugin extends framework_core_1.Plugin {
|
|
|
610
593
|
throw e;
|
|
611
594
|
}
|
|
612
595
|
}
|
|
596
|
+
try {
|
|
597
|
+
let publishAppCustomNavRes = yield this.api.cloudbaseManager.commonService('lowcode', '2021-01-08').call({
|
|
598
|
+
Action: 'PublishAppCustomNav',
|
|
599
|
+
Param: {
|
|
600
|
+
WeAppId: this._resolvedInputs.appId,
|
|
601
|
+
EnvId: this.api.envId,
|
|
602
|
+
PublishType: this._resolvedInputs.deployOptions.mode === lowcode_builder_1.DEPLOY_MODE.UPLOAD ? 'product' : 'preview',
|
|
603
|
+
},
|
|
604
|
+
});
|
|
605
|
+
this.api.logger.info(`${this.api.emoji('🚀')} custom publish success: ${JSON.stringify(publishAppCustomNavRes)}`);
|
|
606
|
+
}
|
|
607
|
+
catch (e) {
|
|
608
|
+
this.api.logger.error(`${this.api.emoji('🚀')} custom publish fail: ${JSON.stringify(e)}`);
|
|
609
|
+
if ((e === null || e === void 0 ? void 0 : e.code) !== 'ResourceNotFound') {
|
|
610
|
+
throw e;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
613
|
if (this._skipInstallExt) {
|
|
614
614
|
try {
|
|
615
615
|
yield this.api.cloudApi.tcbService.request('CloudBaseCIResultCallback', {
|
package/lib/mpPlugin.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface IFrameworkPluginMiniProgramInputs {
|
|
|
9
9
|
previewOptions?: IMiniProgramPreviewOptions;
|
|
10
10
|
uploadOptions?: IMiniProgramUploadOptions;
|
|
11
11
|
commands?: Record<string, string>;
|
|
12
|
+
artifactOptions?: any;
|
|
12
13
|
}
|
|
13
14
|
interface IMiniProgramUploadOptions {
|
|
14
15
|
version?: string;
|
package/lib/mpPlugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mpPlugin.d.ts","sourceRoot":"","sources":["../src/mpPlugin.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,UAAU,iCAAiC;IAIzC,KAAK,EAAE,MAAM,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M,CAAC;IAMlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,wBAAwB;IAMhC,GAAG,CAAC,EAAE,OAAO,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,uBAAuB;IAI/B,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAKD,cAAM,kBAAmB,SAAQ,MAAM;IAKlB,IAAI,EAAE,MAAM;IAAS,GAAG,EAAE,gBAAgB;IAAS,MAAM,EAAE,iCAAiC;IAJ/G,SAAS,CAAC,cAAc,EAAE,iCAAiC,CAAC;IAC5D,SAAS,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC/C,SAAS,CAAC,QAAQ,MAAC;gBAEA,IAAI,EAAE,MAAM,EAAS,GAAG,EAAE,gBAAgB,EAAS,MAAM,EAAE,iCAAiC;IAezG,IAAI;IAQV,OAAO;IAuDD,GAAG;IAKH,MAAM;IAKN,OAAO;IAKP,KAAK;IAgCL,OAAO;IAyBP,MAAM;CAsBb;AAMD,eAAO,MAAM,MAAM,2BAAqB,CAAC"}
|
package/lib/mpPlugin.js
CHANGED
|
@@ -90,6 +90,7 @@ class MiniProgramsPlugin extends framework_core_1.Plugin {
|
|
|
90
90
|
throw new Error('项目内找不到小程序配置文件 project.config.json,请在 cloudbaserc.json 中指明小程序应用的项目路径 localPath.');
|
|
91
91
|
}
|
|
92
92
|
this.deployer = new lowcode_deployer_1.default({
|
|
93
|
+
api: this.api,
|
|
93
94
|
logger: this.api.logger,
|
|
94
95
|
type: 'MP',
|
|
95
96
|
mode: ((_a = this.resolvedInputs) === null || _a === void 0 ? void 0 : _a.deployMode) === 'upload' ? lowcode_deployer_1.EDeployMode.PRODUCTION : lowcode_deployer_1.EDeployMode.PREVIEW,
|
|
@@ -101,6 +102,7 @@ class MiniProgramsPlugin extends framework_core_1.Plugin {
|
|
|
101
102
|
uploadOptions: this.resolvedInputs.uploadOptions,
|
|
102
103
|
previewOptions: this.resolvedInputs.previewOptions,
|
|
103
104
|
},
|
|
105
|
+
artifactOptions: this.resolvedInputs.artifactOptions,
|
|
104
106
|
});
|
|
105
107
|
}
|
|
106
108
|
run() {
|
|
@@ -125,7 +127,7 @@ class MiniProgramsPlugin extends framework_core_1.Plugin {
|
|
|
125
127
|
this.api.logger.info(buildCommand);
|
|
126
128
|
yield (0, util_1.promisify)(child_process_1.exec)(buildCommand);
|
|
127
129
|
}
|
|
128
|
-
yield this.deployer.
|
|
130
|
+
yield this.deployer.genearteMiniprogramNPM();
|
|
129
131
|
return;
|
|
130
132
|
});
|
|
131
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/framework-plugin-low-code",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"url": "https://github.com/TencentCloudBase/cloudbase-framework/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cloudbase/cals": "^0.4.
|
|
40
|
+
"@cloudbase/cals": "^0.4.11",
|
|
41
41
|
"@cloudbase/framework-core": "^1.8.16",
|
|
42
42
|
"@cloudbase/framework-plugin-auth": "^1.8.16",
|
|
43
43
|
"@cloudbase/framework-plugin-mp": "1.9.5-beta.0",
|
|
44
44
|
"@cloudbase/framework-plugin-website": "^1.8.17",
|
|
45
|
-
"@cloudbase/lowcode-builder": "^1.1.
|
|
45
|
+
"@cloudbase/lowcode-builder": "^1.1.7",
|
|
46
46
|
"@formily/react-schema-renderer": "1.1.7",
|
|
47
47
|
"archiver": "^4.0.1",
|
|
48
48
|
"compressing": "^1.4.0",
|