@dckj-npm/lowcode-code-generator 1.2.23 → 1.2.24
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 +280 -280
- package/CONTRIBUTING.md +40 -40
- package/README.md +123 -123
- package/bin/lowcode-code-generator.js +53 -53
- package/dist/cli.js.map +1 -1
- package/dist/standalone-loader.esm.js +1 -1
- package/dist/standalone-loader.esm.js.map +1 -1
- package/dist/standalone-loader.js +1 -1
- package/dist/standalone-loader.js.map +1 -1
- package/dist/standalone-worker.js.map +1 -1
- package/dist/standalone.js.map +1 -1
- package/es/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +156 -156
- package/standalone/index.js +6 -6
- package/standalone/package.json +5 -5
- package/standalone-loader/index.js +2 -2
- package/standalone-loader/package.json +6 -6
- package/standalone-worker/index.js +6 -6
- package/standalone-worker/package.json +5 -5
- package/types/analyzer/componentAnalyzer.d.ts +2 -2
- package/types/cli/index.d.ts +2 -2
- package/types/cli/init-solution.d.ts +4 -4
- package/types/cli/run.d.ts +15 -15
- package/types/cli/solutions/example-solution.d.ts +4 -4
- package/types/config/env.d.ts +1 -1
- package/types/const/file.d.ts +2 -2
- package/types/const/generator.d.ts +58 -58
- package/types/const/index.d.ts +11 -11
- package/types/core/jsx/handlers/transformJsExpression.d.ts +5 -5
- package/types/core/jsx/handlers/transformThis2Context.d.ts +9 -9
- package/types/core/jsx/util/isLiteralAtomicExpr.d.ts +4 -4
- package/types/core/jsx/util/isSimpleStraightLiteral.d.ts +3 -3
- package/types/core/vue/handlers/transformJsExpression.d.ts +5 -5
- package/types/core/vue/handlers/transformThis2Context.d.ts +9 -9
- package/types/core/vue/util/isLiteralAtomicExpr.d.ts +4 -4
- package/types/core/vue/util/isSimpleStraightLiteral.d.ts +3 -3
- package/types/generator/ChunkBuilder.d.ts +23 -23
- package/types/generator/CodeBuilder.d.ts +17 -17
- package/types/generator/ModuleBuilder.d.ts +7 -7
- package/types/generator/ProjectBuilder.d.ts +62 -62
- package/types/index.d.ts +260 -260
- package/types/parser/SchemaParser.d.ts +25 -25
- package/types/plugins/common/esmodule.d.ts +8 -8
- package/types/plugins/common/requireUtils.d.ts +3 -3
- package/types/plugins/common/styleImport.d.ts +3 -3
- package/types/plugins/component/rax/commonDeps.d.ts +3 -3
- package/types/plugins/component/rax/const.d.ts +18 -18
- package/types/plugins/component/rax/containerClass.d.ts +3 -3
- package/types/plugins/component/rax/containerInitState.d.ts +7 -7
- package/types/plugins/component/rax/containerInjectContext.d.ts +6 -6
- package/types/plugins/component/rax/containerInjectDataSourceEngine.d.ts +12 -12
- package/types/plugins/component/rax/containerInjectUtils.d.ts +6 -6
- package/types/plugins/component/rax/containerLifeCycle.d.ts +8 -8
- package/types/plugins/component/rax/containerMethods.d.ts +6 -6
- package/types/plugins/component/rax/jsx.d.ts +8 -8
- package/types/plugins/component/react/const.d.ts +9 -9
- package/types/plugins/component/react/containerClass.d.ts +3 -3
- package/types/plugins/component/react/containerInitState.d.ts +7 -7
- package/types/plugins/component/react/containerInjectConstants.d.ts +6 -6
- package/types/plugins/component/react/containerInjectContext.d.ts +6 -6
- package/types/plugins/component/react/containerInjectDataSourceEngine.d.ts +23 -23
- package/types/plugins/component/react/containerInjectI18n.d.ts +6 -6
- package/types/plugins/component/react/containerInjectUtils.d.ts +8 -8
- package/types/plugins/component/react/containerLifeCycle.d.ts +9 -9
- package/types/plugins/component/react/containerMethod.d.ts +6 -6
- package/types/plugins/component/react/jsx.d.ts +7 -7
- package/types/plugins/component/react/reactCommonDeps.d.ts +3 -3
- package/types/plugins/component/style/css.d.ts +7 -7
- package/types/plugins/component/vue/apiImport.d.ts +23 -23
- package/types/plugins/component/vue/containerInitVariable.d.ts +7 -7
- package/types/plugins/component/vue/containerInjectDataSourceEngine.d.ts +23 -23
- package/types/plugins/component/vue/containerLifeCycle.d.ts +9 -9
- package/types/plugins/component/vue/containerMethod.d.ts +6 -6
- package/types/plugins/component/vue/containerVue.d.ts +3 -3
- package/types/plugins/component/vue/convert/convert-function.d.ts +6 -6
- package/types/plugins/component/vue/convert/convert-variable.d.ts +11 -11
- package/types/plugins/component/vue/dataSourceMap.d.ts +7 -7
- package/types/plugins/component/vue/esmodule.d.ts +8 -8
- package/types/plugins/component/vue/routerSecond.d.ts +3 -3
- package/types/plugins/component/vue/template.d.ts +7 -7
- package/types/plugins/component/vue/vueCommonDeps.d.ts +3 -3
- package/types/plugins/project/constants.d.ts +3 -3
- package/types/plugins/project/framework/icejs/index.d.ts +11 -11
- package/types/plugins/project/framework/icejs/plugins/entry.d.ts +3 -3
- package/types/plugins/project/framework/icejs/plugins/entryHtml.d.ts +3 -3
- package/types/plugins/project/framework/icejs/plugins/globalStyle.d.ts +3 -3
- package/types/plugins/project/framework/icejs/plugins/packageJSON.d.ts +26 -26
- package/types/plugins/project/framework/icejs/plugins/router.d.ts +3 -3
- package/types/plugins/project/framework/icejs/template/files/README.md.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/abc.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/build.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/editorconfig.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/eslintignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/eslintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/gitignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/jsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/prettierignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/prettierrc.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/stylelintignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/stylelintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/tsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/index.d.ts +3 -3
- package/types/plugins/project/framework/icejs/template/static-files.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/index.d.ts +11 -11
- package/types/plugins/project/framework/icejs3/plugins/appConfig.d.ts +5 -5
- package/types/plugins/project/framework/icejs3/plugins/buildConfig.d.ts +7 -7
- package/types/plugins/project/framework/icejs3/plugins/globalStyle.d.ts +3 -3
- package/types/plugins/project/framework/icejs3/plugins/layout.d.ts +3 -3
- package/types/plugins/project/framework/icejs3/plugins/packageJSON.d.ts +26 -26
- package/types/plugins/project/framework/icejs3/template/files/README.md.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/browserslistrc.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/document.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/gitignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/tsconfig.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/typings.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/index.d.ts +3 -3
- package/types/plugins/project/framework/icejs3/template/static-files.d.ts +2 -2
- package/types/plugins/project/framework/rax/index.d.ts +12 -12
- package/types/plugins/project/framework/rax/plugins/appConfig.d.ts +4 -4
- package/types/plugins/project/framework/rax/plugins/buildConfig.d.ts +4 -4
- package/types/plugins/project/framework/rax/plugins/entry.d.ts +4 -4
- package/types/plugins/project/framework/rax/plugins/entryDocument.d.ts +7 -7
- package/types/plugins/project/framework/rax/plugins/globalStyle.d.ts +6 -6
- package/types/plugins/project/framework/rax/plugins/packageJSON.d.ts +4 -4
- package/types/plugins/project/framework/rax/template/files/.eslintignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.eslintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.gitignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.prettierignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.prettierrc.js.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.stylelintignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.stylelintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/README.md.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/jsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/tsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/index.d.ts +3 -3
- package/types/plugins/project/framework/rax/template/static-files.d.ts +2 -2
- package/types/plugins/project/framework/rax/types/RaxFrameworkOptions.d.ts +81 -81
- package/types/plugins/project/framework/vuejs3/index.d.ts +11 -11
- package/types/plugins/project/framework/vuejs3/plugins/form.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/plugins/hooks.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/plugins/main.d.ts +4 -4
- package/types/plugins/project/framework/vuejs3/plugins/packageJSON.d.ts +26 -26
- package/types/plugins/project/framework/vuejs3/plugins/router.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/template/files/css/global.scss.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/css/mixin.scss.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/css/theme.css.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/env.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/eslintignore.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/eslintrc.yml.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/gitignore.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/index.html.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/npmrc.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/postcss.config.cjs.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/prettierignore.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/prettierrc.yml.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/App.vue.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/main.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/utils/utils.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/tabs.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/welcome.vue.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/vite-env.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/tsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/tsconfig.node.json.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/vite.config.ts.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/index.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/template/static-files.d.ts +2 -2
- package/types/plugins/project/i18n.d.ts +3 -3
- package/types/plugins/project/utils.d.ts +3 -3
- package/types/polyfills/buffer.d.ts +1 -1
- package/types/postprocessor/index.d.ts +2 -2
- package/types/postprocessor/prettier/index.d.ts +8 -8
- package/types/publisher/disk/index.d.ts +13 -13
- package/types/publisher/disk/utils.d.ts +9 -9
- package/types/publisher/zip/index.d.ts +14 -14
- package/types/publisher/zip/utils.d.ts +5 -5
- package/types/solutions/icejs.d.ts +18 -18
- package/types/solutions/icejs3.d.ts +15 -15
- package/types/solutions/rax-app.d.ts +27 -27
- package/types/solutions/vuejs3.d.ts +22 -22
- package/types/standalone-loader.d.ts +17 -17
- package/types/standalone-worker.d.ts +1 -1
- package/types/standalone.d.ts +260 -260
- package/types/types/analyze.d.ts +5 -5
- package/types/types/column-type.d.ts +316 -316
- package/types/types/core.d.ts +197 -197
- package/types/types/datasource-extra-base.d.ts +32 -32
- package/types/types/datasource-page-helper.d.ts +30 -30
- package/types/types/deps.d.ts +36 -36
- package/types/types/error.d.ts +10 -10
- package/types/types/file.d.ts +14 -14
- package/types/types/index.d.ts +8 -8
- package/types/types/intermediate.d.ts +234 -234
- package/types/types/jsx.d.ts +34 -34
- package/types/types/publisher.d.ts +14 -14
- package/types/types/tab.d.ts +6 -6
- package/types/utils/OrderedSet.d.ts +9 -9
- package/types/utils/Scope.d.ts +12 -12
- package/types/utils/ScopeBindings.d.ts +20 -20
- package/types/utils/aopHelper.d.ts +2 -2
- package/types/utils/apiHandler.d.ts +4 -4
- package/types/utils/changeCase.d.ts +10 -10
- package/types/utils/columnType.d.ts +1 -1
- package/types/utils/common.d.ts +14 -14
- package/types/utils/compositeType.d.ts +3 -3
- package/types/utils/dataSource.d.ts +17 -17
- package/types/utils/debug.d.ts +2 -2
- package/types/utils/encodeJsxAttrString.d.ts +1 -1
- package/types/utils/errors.d.ts +4 -4
- package/types/utils/expressionParser.d.ts +16 -16
- package/types/utils/format.d.ts +1 -1
- package/types/utils/index.d.ts +15 -15
- package/types/utils/jsExpression.d.ts +50 -50
- package/types/utils/jsSlot.d.ts +2 -2
- package/types/utils/jsxHelpers.d.ts +5 -5
- package/types/utils/nodeToJSX.d.ts +32 -32
- package/types/utils/nodeToTemplate.d.ts +17 -17
- package/types/utils/pathHelper.d.ts +6 -6
- package/types/utils/requestHandle.d.ts +77 -77
- package/types/utils/resultHelper.d.ts +51 -51
- package/types/utils/routerHandle.d.ts +11 -11
- package/types/utils/schema.d.ts +24 -24
- package/types/utils/templateHelper.d.ts +11 -11
- package/types/utils/theme.d.ts +9 -9
- package/types/utils/validate.d.ts +8 -8
- package/types/utils/version.d.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IProjectTemplate } from '../../../../../types';
|
|
2
|
-
declare const raxAppTemplate: IProjectTemplate;
|
|
3
|
-
export default raxAppTemplate;
|
|
1
|
+
import { IProjectTemplate } from '../../../../../types';
|
|
2
|
+
declare const raxAppTemplate: IProjectTemplate;
|
|
3
|
+
export default raxAppTemplate;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultDir } from '@alilc/lowcode-types';
|
|
2
|
-
export declare function generateStaticFiles(root?: ResultDir): ResultDir;
|
|
1
|
+
import { ResultDir } from '@alilc/lowcode-types';
|
|
2
|
+
export declare function generateStaticFiles(root?: ResultDir): ResultDir;
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
export type RaxFrameworkOptions = {
|
|
2
|
-
/**
|
|
3
|
-
* 默认的页面标题
|
|
4
|
-
*/
|
|
5
|
-
title?: string;
|
|
6
|
-
/**
|
|
7
|
-
* 目标环境(默认是仅 web 环境)
|
|
8
|
-
*/
|
|
9
|
-
targets?: Array<'web' | 'miniapp' | string>;
|
|
10
|
-
/**
|
|
11
|
-
* 小程序引擎选择,默认为运行时引擎。如需启用编译时引擎,则配置为 compile
|
|
12
|
-
*/
|
|
13
|
-
miniAppBuildType?: MiniAppBuildType;
|
|
14
|
-
/**
|
|
15
|
-
* 构建配置
|
|
16
|
-
*/
|
|
17
|
-
buildConfig?: {
|
|
18
|
-
inlineStyle?: boolean | {
|
|
19
|
-
forceEnableCSS: boolean;
|
|
20
|
-
};
|
|
21
|
-
alias?: {
|
|
22
|
-
[key: string]: string;
|
|
23
|
-
};
|
|
24
|
-
publicPath?: string;
|
|
25
|
-
devPublicPath?: string;
|
|
26
|
-
sourceMap?: boolean | string;
|
|
27
|
-
externals?: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
hash?: boolean | string;
|
|
31
|
-
polyfill?: string | false;
|
|
32
|
-
minify?: boolean;
|
|
33
|
-
outputDir?: string;
|
|
34
|
-
proxy?: {
|
|
35
|
-
[key: string]: string;
|
|
36
|
-
};
|
|
37
|
-
devServer?: {
|
|
38
|
-
[key: string]: unknown;
|
|
39
|
-
};
|
|
40
|
-
browserslist?: string | {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
};
|
|
43
|
-
compileDependencies?: string[];
|
|
44
|
-
miniapp?: {
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
};
|
|
47
|
-
[key: string]: unknown;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* 数据源配置
|
|
51
|
-
*/
|
|
52
|
-
datasourceConfig?: {
|
|
53
|
-
/** 数据源引擎的版本 */
|
|
54
|
-
engineVersion?: string;
|
|
55
|
-
/** 数据源引擎的包名 */
|
|
56
|
-
enginePackage?: string;
|
|
57
|
-
/** 数据源 handlers 的版本 */
|
|
58
|
-
handlersVersion?: {
|
|
59
|
-
[key: string]: string;
|
|
60
|
-
};
|
|
61
|
-
/** 数据源 handlers 的包名 */
|
|
62
|
-
handlersPackages?: {
|
|
63
|
-
[key: string]: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
/** 包名 */
|
|
67
|
-
packageName?: string;
|
|
68
|
-
/** 版本 */
|
|
69
|
-
packageVersion?: string;
|
|
70
|
-
/** 全局样式文件的类型 */
|
|
71
|
-
globalStylesFileType?: 'css' | 'scss' | 'less';
|
|
72
|
-
/** 应用配置 */
|
|
73
|
-
appConfig?: {
|
|
74
|
-
/** 路由配置 */
|
|
75
|
-
router?: {
|
|
76
|
-
type?: 'browser' | 'hash' | string;
|
|
77
|
-
basename?: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export type MiniAppBuildType = 'compile' | 'runtime';
|
|
1
|
+
export type RaxFrameworkOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* 默认的页面标题
|
|
4
|
+
*/
|
|
5
|
+
title?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 目标环境(默认是仅 web 环境)
|
|
8
|
+
*/
|
|
9
|
+
targets?: Array<'web' | 'miniapp' | string>;
|
|
10
|
+
/**
|
|
11
|
+
* 小程序引擎选择,默认为运行时引擎。如需启用编译时引擎,则配置为 compile
|
|
12
|
+
*/
|
|
13
|
+
miniAppBuildType?: MiniAppBuildType;
|
|
14
|
+
/**
|
|
15
|
+
* 构建配置
|
|
16
|
+
*/
|
|
17
|
+
buildConfig?: {
|
|
18
|
+
inlineStyle?: boolean | {
|
|
19
|
+
forceEnableCSS: boolean;
|
|
20
|
+
};
|
|
21
|
+
alias?: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
publicPath?: string;
|
|
25
|
+
devPublicPath?: string;
|
|
26
|
+
sourceMap?: boolean | string;
|
|
27
|
+
externals?: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
hash?: boolean | string;
|
|
31
|
+
polyfill?: string | false;
|
|
32
|
+
minify?: boolean;
|
|
33
|
+
outputDir?: string;
|
|
34
|
+
proxy?: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
};
|
|
37
|
+
devServer?: {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
browserslist?: string | {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
compileDependencies?: string[];
|
|
44
|
+
miniapp?: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* 数据源配置
|
|
51
|
+
*/
|
|
52
|
+
datasourceConfig?: {
|
|
53
|
+
/** 数据源引擎的版本 */
|
|
54
|
+
engineVersion?: string;
|
|
55
|
+
/** 数据源引擎的包名 */
|
|
56
|
+
enginePackage?: string;
|
|
57
|
+
/** 数据源 handlers 的版本 */
|
|
58
|
+
handlersVersion?: {
|
|
59
|
+
[key: string]: string;
|
|
60
|
+
};
|
|
61
|
+
/** 数据源 handlers 的包名 */
|
|
62
|
+
handlersPackages?: {
|
|
63
|
+
[key: string]: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
/** 包名 */
|
|
67
|
+
packageName?: string;
|
|
68
|
+
/** 版本 */
|
|
69
|
+
packageVersion?: string;
|
|
70
|
+
/** 全局样式文件的类型 */
|
|
71
|
+
globalStylesFileType?: 'css' | 'scss' | 'less';
|
|
72
|
+
/** 应用配置 */
|
|
73
|
+
appConfig?: {
|
|
74
|
+
/** 路由配置 */
|
|
75
|
+
router?: {
|
|
76
|
+
type?: 'browser' | 'hash' | string;
|
|
77
|
+
basename?: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export type MiniAppBuildType = 'compile' | 'runtime';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
template: import("../../../..").IProjectTemplate;
|
|
3
|
-
plugins: {
|
|
4
|
-
packageJSON: import("../../../..").BuilderComponentPluginFactory<import("./plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
5
|
-
router: import("../../../..").BuilderComponentPluginFactory<unknown>;
|
|
6
|
-
main: import("../../../..").BuilderComponentPluginFactory<import("../../../component/vue/template").PluginConfig>;
|
|
7
|
-
form: import("../../../..").BuilderComponentPluginFactory<unknown>;
|
|
8
|
-
hooks: import("../../../..").BuilderComponentPluginFactory<unknown>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
template: import("../../../..").IProjectTemplate;
|
|
3
|
+
plugins: {
|
|
4
|
+
packageJSON: import("../../../..").BuilderComponentPluginFactory<import("./plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
5
|
+
router: import("../../../..").BuilderComponentPluginFactory<unknown>;
|
|
6
|
+
main: import("../../../..").BuilderComponentPluginFactory<import("../../../component/vue/template").PluginConfig>;
|
|
7
|
+
form: import("../../../..").BuilderComponentPluginFactory<unknown>;
|
|
8
|
+
hooks: import("../../../..").BuilderComponentPluginFactory<unknown>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
-
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
+
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
+
export default pluginFactory;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
-
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
+
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
+
export default pluginFactory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
-
import { PluginConfig } from '../../../../component/vue/template';
|
|
3
|
-
declare const pluginFactory: BuilderComponentPluginFactory<PluginConfig>;
|
|
4
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
+
import { PluginConfig } from '../../../../component/vue/template';
|
|
3
|
+
declare const pluginFactory: BuilderComponentPluginFactory<PluginConfig>;
|
|
4
|
+
export default pluginFactory;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
-
export interface IceJsPackageJsonPluginConfig {
|
|
3
|
-
/**
|
|
4
|
-
* 数据源配置
|
|
5
|
-
*/
|
|
6
|
-
datasourceConfig?: {
|
|
7
|
-
/** 数据源引擎的版本 */
|
|
8
|
-
engineVersion?: string;
|
|
9
|
-
/** 数据源引擎的包名 */
|
|
10
|
-
enginePackage?: string;
|
|
11
|
-
/** 数据源 handlers 的版本 */
|
|
12
|
-
handlersVersion?: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
/** 数据源 handlers 的包名 */
|
|
16
|
-
handlersPackages?: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
/** 包名 */
|
|
21
|
-
packageName?: string;
|
|
22
|
-
/** 版本 */
|
|
23
|
-
packageVersion?: string;
|
|
24
|
-
}
|
|
25
|
-
declare const pluginFactory: BuilderComponentPluginFactory<IceJsPackageJsonPluginConfig>;
|
|
26
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
+
export interface IceJsPackageJsonPluginConfig {
|
|
3
|
+
/**
|
|
4
|
+
* 数据源配置
|
|
5
|
+
*/
|
|
6
|
+
datasourceConfig?: {
|
|
7
|
+
/** 数据源引擎的版本 */
|
|
8
|
+
engineVersion?: string;
|
|
9
|
+
/** 数据源引擎的包名 */
|
|
10
|
+
enginePackage?: string;
|
|
11
|
+
/** 数据源 handlers 的版本 */
|
|
12
|
+
handlersVersion?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
/** 数据源 handlers 的包名 */
|
|
16
|
+
handlersPackages?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/** 包名 */
|
|
21
|
+
packageName?: string;
|
|
22
|
+
/** 版本 */
|
|
23
|
+
packageVersion?: string;
|
|
24
|
+
}
|
|
25
|
+
declare const pluginFactory: BuilderComponentPluginFactory<IceJsPackageJsonPluginConfig>;
|
|
26
|
+
export default pluginFactory;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
-
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../../../../types';
|
|
2
|
+
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
+
export default pluginFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/tabs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/welcome.vue.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
-
export default function getFile(): [string[], ResultFile];
|
|
1
|
+
import { ResultFile } from '@alilc/lowcode-types';
|
|
2
|
+
export default function getFile(): [string[], ResultFile];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IProjectTemplate } from '../../../../../types';
|
|
2
|
-
declare const vuejs3Template: IProjectTemplate;
|
|
3
|
-
export default vuejs3Template;
|
|
1
|
+
import { IProjectTemplate } from '../../../../../types';
|
|
2
|
+
declare const vuejs3Template: IProjectTemplate;
|
|
3
|
+
export default vuejs3Template;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultDir } from '@alilc/lowcode-types';
|
|
2
|
-
export declare function generateStaticFiles(root?: ResultDir): ResultDir;
|
|
1
|
+
import { ResultDir } from '@alilc/lowcode-types';
|
|
2
|
+
export declare function generateStaticFiles(root?: ResultDir): ResultDir;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../types';
|
|
2
|
-
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../types';
|
|
2
|
+
declare const pluginFactory: BuilderComponentPluginFactory<unknown>;
|
|
3
|
+
export default pluginFactory;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BuilderComponentPluginFactory } from '../../types';
|
|
2
|
-
declare const pluginFactory: BuilderComponentPluginFactory<string>;
|
|
3
|
-
export default pluginFactory;
|
|
1
|
+
import { BuilderComponentPluginFactory } from '../../types';
|
|
2
|
+
declare const pluginFactory: BuilderComponentPluginFactory<string>;
|
|
3
|
+
export default pluginFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import prettier from './prettier';
|
|
2
|
-
export { prettier };
|
|
1
|
+
import prettier from './prettier';
|
|
2
|
+
export { prettier };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import prettier from 'prettier';
|
|
2
|
-
import { PostProcessorFactory } from '../../types';
|
|
3
|
-
export interface ProcessorConfig {
|
|
4
|
-
customFileTypeParser: Record<string, string>;
|
|
5
|
-
plugins?: prettier.Plugin[];
|
|
6
|
-
}
|
|
7
|
-
declare const factory: PostProcessorFactory<ProcessorConfig>;
|
|
8
|
-
export default factory;
|
|
1
|
+
import prettier from 'prettier';
|
|
2
|
+
import { PostProcessorFactory } from '../../types';
|
|
3
|
+
export interface ProcessorConfig {
|
|
4
|
+
customFileTypeParser: Record<string, string>;
|
|
5
|
+
plugins?: prettier.Plugin[];
|
|
6
|
+
}
|
|
7
|
+
declare const factory: PostProcessorFactory<ProcessorConfig>;
|
|
8
|
+
export default factory;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { PublisherFactory, IPublisher, IPublisherFactoryParams } from '../../types';
|
|
2
|
-
import { IFileSystem } from './utils';
|
|
3
|
-
export interface IDiskFactoryParams extends IPublisherFactoryParams {
|
|
4
|
-
outputPath?: string;
|
|
5
|
-
projectSlug?: string;
|
|
6
|
-
createProjectFolder?: boolean;
|
|
7
|
-
fs?: IFileSystem;
|
|
8
|
-
}
|
|
9
|
-
export interface IDiskPublisher extends IPublisher<IDiskFactoryParams, string> {
|
|
10
|
-
getOutputPath: () => string;
|
|
11
|
-
setOutputPath: (path: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const createDiskPublisher: PublisherFactory<IDiskFactoryParams, IDiskPublisher>;
|
|
1
|
+
import { PublisherFactory, IPublisher, IPublisherFactoryParams } from '../../types';
|
|
2
|
+
import { IFileSystem } from './utils';
|
|
3
|
+
export interface IDiskFactoryParams extends IPublisherFactoryParams {
|
|
4
|
+
outputPath?: string;
|
|
5
|
+
projectSlug?: string;
|
|
6
|
+
createProjectFolder?: boolean;
|
|
7
|
+
fs?: IFileSystem;
|
|
8
|
+
}
|
|
9
|
+
export interface IDiskPublisher extends IPublisher<IDiskFactoryParams, string> {
|
|
10
|
+
getOutputPath: () => string;
|
|
11
|
+
setOutputPath: (path: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createDiskPublisher: PublisherFactory<IDiskFactoryParams, IDiskPublisher>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as systemFs from 'fs';
|
|
3
|
-
import { ResultDir } from '@alilc/lowcode-types';
|
|
4
|
-
export interface IFileSystem {
|
|
5
|
-
existsSync: typeof systemFs.existsSync;
|
|
6
|
-
mkdir: typeof systemFs.mkdir;
|
|
7
|
-
writeFile: typeof systemFs.writeFile;
|
|
8
|
-
}
|
|
9
|
-
export declare const writeFolder: (folder: ResultDir, currentPath: string, createProjectFolder?: boolean, fs?: IFileSystem) => Promise<void>;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as systemFs from 'fs';
|
|
3
|
+
import { ResultDir } from '@alilc/lowcode-types';
|
|
4
|
+
export interface IFileSystem {
|
|
5
|
+
existsSync: typeof systemFs.existsSync;
|
|
6
|
+
mkdir: typeof systemFs.mkdir;
|
|
7
|
+
writeFile: typeof systemFs.writeFile;
|
|
8
|
+
}
|
|
9
|
+
export declare const writeFolder: (folder: ResultDir, currentPath: string, createProjectFolder?: boolean, fs?: IFileSystem) => Promise<void>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { PublisherFactory, IPublisher, IPublisherFactoryParams } from '../../types';
|
|
3
|
-
export type ZipBuffer = Buffer | Blob;
|
|
4
|
-
declare type ZipPublisherResponse = string | ZipBuffer;
|
|
5
|
-
export interface ZipFactoryParams extends IPublisherFactoryParams {
|
|
6
|
-
outputPath?: string;
|
|
7
|
-
projectSlug?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ZipPublisher extends IPublisher<ZipFactoryParams, ZipPublisherResponse> {
|
|
10
|
-
getOutputPath: () => string | undefined;
|
|
11
|
-
setOutputPath: (path: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const createZipPublisher: PublisherFactory<ZipFactoryParams, ZipPublisher>;
|
|
14
|
-
export {};
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PublisherFactory, IPublisher, IPublisherFactoryParams } from '../../types';
|
|
3
|
+
export type ZipBuffer = Buffer | Blob;
|
|
4
|
+
declare type ZipPublisherResponse = string | ZipBuffer;
|
|
5
|
+
export interface ZipFactoryParams extends IPublisherFactoryParams {
|
|
6
|
+
outputPath?: string;
|
|
7
|
+
projectSlug?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ZipPublisher extends IPublisher<ZipFactoryParams, ZipPublisherResponse> {
|
|
10
|
+
getOutputPath: () => string | undefined;
|
|
11
|
+
setOutputPath: (path: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createZipPublisher: PublisherFactory<ZipFactoryParams, ZipPublisher>;
|
|
14
|
+
export {};
|