@cloudbase/lowcode-builder 1.0.27 → 1.0.30
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.
|
@@ -30,7 +30,7 @@ async function writeCode2file(mod, lowcodeRootDir, opts = {}, themeCode, ctx) {
|
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
32
|
// Generate component lowcode
|
|
33
|
-
code = `import process from '${mod.type === 'handler-fn' ? '../' : ''}../../../../common/process'\nimport app from '${mod.type === 'handler-fn' ? '../' : ''}../../../../
|
|
33
|
+
code = `import process from '${mod.type === 'handler-fn' ? '../' : ''}../../../../common/process'\nimport { app } from '${mod.type === 'handler-fn' ? '../' : ''}../../../../app/weapps-api';\nconst $app = new Proxy({}, { get: function(obj, prop){ return app[prop] }});\n${code.replace(/\$comp/g, weapps_core_1.COMPONENT_API_PREFIX)}`;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { IBuildContext } from '../mp/BuildContext';
|
|
3
3
|
import { OutputType } from 'jszip';
|
|
4
|
-
import { Buffer } from 'buffer';
|
|
5
4
|
export default function generateFiles(appFileData: any, srcDir: string, dstDir: string, ctx: IBuildContext): Promise<string[]>;
|
|
6
5
|
export declare function writeFile(outFile: string, content: string): Promise<boolean>;
|
|
7
6
|
export declare function removeFile(file: string): void;
|
|
@@ -48,5 +47,5 @@ export declare function getFiles(dir: string, files_: any, replacePath?: string)
|
|
|
48
47
|
*/
|
|
49
48
|
export declare function fileToZip(files: {
|
|
50
49
|
[key: string]: Uint8Array;
|
|
51
|
-
}, type: OutputType): Promise<string | Buffer | Uint8Array |
|
|
50
|
+
}, type: OutputType): Promise<string | Buffer | Uint8Array | number[] | ArrayBuffer | Blob>;
|
|
52
51
|
export declare function strToBuf(str: any): Buffer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@cloudbase/cals": "^0.4.7",
|
|
42
|
-
"@cloudbase/lowcode-generator": "^1.0.
|
|
42
|
+
"@cloudbase/lowcode-generator": "^1.0.12",
|
|
43
43
|
"axios": "^0.21.0",
|
|
44
44
|
"browserfs": "^1.4.3",
|
|
45
45
|
"browserify-zlib": "^0.2.0",
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
></script>
|
|
462
462
|
<script
|
|
463
463
|
crossorigin
|
|
464
|
-
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
464
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.cc51b443e81a9f4a9c57.bundle.js"
|
|
465
465
|
></script>
|
|
466
466
|
</body>
|
|
467
467
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { observable } from 'mobx';
|
|
2
2
|
import { createComponent } from '../../../common/weapp-component'
|
|
3
3
|
import { concatClassList, px2rpx } from '../../../common/style'
|
|
4
|
-
import app from '../../../
|
|
4
|
+
import { app } from '../../../app/weapps-api'
|
|
5
5
|
<%= importor.lifecycle? "import lifeCycle from './lowcode/lifecycle'" : "const lifeCycle = {}" %>
|
|
6
6
|
<%= importor.state? "import stateFn from './lowcode/state'" : "const stateFn = {}" %>
|
|
7
7
|
<%= importor.computed? "import computedFuncs from './lowcode/computed'" : "const computedFuncs = {}" %>
|
package/template/mp/package.json
CHANGED
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@cloudbase/weda-client": "0.2.18-alpha.1",
|
|
7
7
|
"@cloudbase/weda-cloud-sdk": "1.0.15",
|
|
8
|
-
|
|
8
|
+
"@cloudbase/oauth": "0.1.1-alpha.5",
|
|
9
9
|
"mobx": "^5.15.4",
|
|
10
10
|
"lodash.get": "^4.4.2",
|
|
11
11
|
"lodash.set": "^4.3.2",
|
|
12
12
|
"miniprogram-gesture": "^1.0.6",
|
|
13
13
|
"miniprogram-api-promise": "^1.0.4"<% Object.keys(extraDeps).map(depName => {%>,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"<%= depName%>": "<%= extraDeps[depName]%>"<%
|
|
15
|
+
})
|
|
16
|
+
%>
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
|