@cloudbase/lowcode-builder 1.9.5 → 1.9.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.
- package/lib/builder/config/dependencies.js +1 -1
- package/lib/builder/mp/materials.d.ts +1 -1
- package/lib/builder/service/webpack.js +1 -1
- package/lib/builder/types/common.d.ts +1 -1
- package/lib/builder/util/common.d.ts +1 -1
- package/lib/builder.web.js +8 -8
- package/package.json +2 -2
- package/template/html/index.html.ejs +1 -1
- package/template/mp/common/util.js +1 -1
- package/template/mp/datasources/config.js.tpl +7 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateSystemPackageDependencies = exports.generateLibDependencies = exports.generatePackageDependencies = void 0;
|
|
4
4
|
const cals_1 = require("@cloudbase/cals");
|
|
5
|
-
const CLOUDBASE_VERSION = '2.8.
|
|
5
|
+
const CLOUDBASE_VERSION = '2.8.16-beta.0';
|
|
6
6
|
const BASE_DEPS = {
|
|
7
7
|
'miniprogram-gesture': '^1.0.6',
|
|
8
8
|
mobx: '^5',
|
|
@@ -3,7 +3,7 @@ import { IBuildContext, IMpCommonBuildContext } from './BuildContext';
|
|
|
3
3
|
import NameMangler from '@cloudbase/lowcode-generator/lib/generator/util/name-mangler';
|
|
4
4
|
import { IUsedComps } from '../types/common';
|
|
5
5
|
export declare function normalizeCompositeDependienciesForBuild(lib: any): any;
|
|
6
|
-
export
|
|
6
|
+
export type TInstallMaterialsType = 'lib' | 'inline';
|
|
7
7
|
export declare function installMaterials(ctx: IMpCommonBuildContext, outDir: string, usedMeta?: {
|
|
8
8
|
component: IUsedComps;
|
|
9
9
|
action: IUsedComps;
|
|
@@ -201,7 +201,7 @@ async function downloadDependencies(targetDir, srcZipUrl, useBash = false) {
|
|
|
201
201
|
const tag = `bash ${srcZipUrl}`;
|
|
202
202
|
console.time(tag);
|
|
203
203
|
await fs_extra_1.default.ensureDir(targetDir);
|
|
204
|
-
await spawnPromise(`wget -
|
|
204
|
+
await spawnPromise(`temp_dir=$(mktemp -d) && wget -O "$temp_dir/file.zip" "${srcZipUrl}" && unzip "$temp_dir/file.zip" -d ${targetDir} && rm -rf "$temp_dir"`, [], {
|
|
205
205
|
cwd: process.cwd(),
|
|
206
206
|
stdio: undefined,
|
|
207
207
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BuildType, GenerateMpType, WebpackModeType, WebpackBuildCallBack, IPackageJson, buildAsWebByBuildType, buildAsAdminPortalByBuildType, buildAsXPageByBuildType, IAppUsedComp, IUsedComps, ISyncProp, IComponentInputProps, IFileCodeMap, } from '@cloudbase/lowcode-generator/lib/generator/types/common';
|
|
2
2
|
import { IComponentMeta, ICompositedComponent } from '@cloudbase/lowcode-generator/lib/weapps-core';
|
|
3
|
-
export
|
|
3
|
+
export type IComponentsInfoMap = {
|
|
4
4
|
[componentSourceKey: string]: ({
|
|
5
5
|
meta: IComponentMeta;
|
|
6
6
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IComponentInputProps, IComponentsInfoMap, IPackageJson } from '../types/common';
|
|
2
2
|
import { IMaterialItem, IWeAppComponentInstance, IWeAppCode } from '@cloudbase/lowcode-generator/lib/weapps-core';
|
|
3
3
|
export { getMetaInfoBySourceKey, isArray, isPlainObject, deepDeal, simpleDeepClone, getFileNameByUrl, } from '@cloudbase/lowcode-generator/lib/generator/util/common';
|
|
4
|
-
|
|
4
|
+
type PromiseResult<T> = Promise<[null, T] | [Error, null]>;
|
|
5
5
|
export declare function promiseWrapper<T>(p: Promise<T>): PromiseResult<T>;
|
|
6
6
|
export declare function getCurrentPackageJson(): {
|
|
7
7
|
name: any;
|