@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
package/package.json
CHANGED
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dckj-npm/lowcode-code-generator",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "出码引擎 for LowCode Engine(额外添加vue3处理方案)",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"module": "es/index.js",
|
|
8
|
-
"typings": "types/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"bin",
|
|
11
|
-
"lib",
|
|
12
|
-
"es",
|
|
13
|
-
"dist",
|
|
14
|
-
"types",
|
|
15
|
-
"standalone",
|
|
16
|
-
"standalone-worker",
|
|
17
|
-
"standalone-loader",
|
|
18
|
-
"loader",
|
|
19
|
-
"CHANGELOG.md",
|
|
20
|
-
"README.md",
|
|
21
|
-
"CONTRIBUTING.md"
|
|
22
|
-
],
|
|
23
|
-
"bin": {
|
|
24
|
-
"lowcode-code-generator": "bin/lowcode-code-generator.js"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"start": "jest --watchAll",
|
|
28
|
-
"build": "npm run clean && node scripts/build",
|
|
29
|
-
"build:standalone": "node scripts/build-standalone",
|
|
30
|
-
"clean": "rimraf es lib dist types generated demo coverage output test-cases/*/*/actual",
|
|
31
|
-
"lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
|
|
32
|
-
"lintfix": "eslint --ext .jsx,.js,.ts,.tsx --fix src/",
|
|
33
|
-
"check:types": "tsc --noEmit",
|
|
34
|
-
"template": "node ./scripts/build-template-static-files.js",
|
|
35
|
-
"test": "npm run test:normal && npm run test:standalone",
|
|
36
|
-
"test:normal": "jest",
|
|
37
|
-
"test:standalone": "node scripts/test-standalone",
|
|
38
|
-
"test:cov": "jest --coverage",
|
|
39
|
-
"test:update-snapshots": "cross-env UPDATE_EXPECTED=true jest -u",
|
|
40
|
-
"analyze:standalone": "ANALYZE=true node scripts/build-standalone",
|
|
41
|
-
"release:beta": "standard-version -t @alilc/lowcode-code-generator\\@ -r patch --prerelease beta && git push --follow-tags && npm publish --tag beta",
|
|
42
|
-
"release:patch": "standard-version -t @alilc/lowcode-code-generator\\@ -r patch && git push --follow-tags && npm publish",
|
|
43
|
-
"release:minor": "standard-version -t @alilc/lowcode-code-generator\\@ -r minor && git push --follow-tags && npm publish",
|
|
44
|
-
"prepablishOnly": "npm run build",
|
|
45
|
-
"demo": "node bin/lowcode-code-generator.js -i schema.json -o demo -s vuejs3"
|
|
46
|
-
},
|
|
47
|
-
"standard-version": {
|
|
48
|
-
"skip": {
|
|
49
|
-
"changelog": true
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"husky": {
|
|
53
|
-
"hooks": {
|
|
54
|
-
"pre-commit": "lint-staged",
|
|
55
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"lint-staged": {
|
|
59
|
-
"**/*.{js,jsx,ts,tsx}": "eslint"
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"@alilc/lowcode-code-generator": "^1.1.7",
|
|
63
|
-
"@alilc/lowcode-types": "^1.0.0",
|
|
64
|
-
"@babel/generator": "^7.12.11",
|
|
65
|
-
"@babel/parser": "^7.12.11",
|
|
66
|
-
"@babel/runtime": "^7.12.5",
|
|
67
|
-
"@babel/traverse": "^7.12.12",
|
|
68
|
-
"@babel/types": "^7.12.12",
|
|
69
|
-
"@types/debug": "^4.1.7",
|
|
70
|
-
"@types/fs-extra": "^9.0.12",
|
|
71
|
-
"@types/glob": "^7.2.0",
|
|
72
|
-
"@types/lodash": "^4.14.162",
|
|
73
|
-
"@types/node-fetch": "2.x",
|
|
74
|
-
"@types/qs": "^6.9.6",
|
|
75
|
-
"@types/semver": "^7.3.4",
|
|
76
|
-
"babel-jest": "^26.5.2",
|
|
77
|
-
"buffer": "^6.0.3",
|
|
78
|
-
"chalk": "^4.1.0",
|
|
79
|
-
"change-case": "^3.1.0",
|
|
80
|
-
"commander": "^6.1.0",
|
|
81
|
-
"debug": "^4.3.2",
|
|
82
|
-
"file-saver": "^2.0.5",
|
|
83
|
-
"fp-ts": "^2.11.9",
|
|
84
|
-
"fs-extra": "9.x",
|
|
85
|
-
"glob": "^7.2.0",
|
|
86
|
-
"html-entities": "^2.3.2",
|
|
87
|
-
"json5": "^2.2.0",
|
|
88
|
-
"jsonc": "^2.0.0",
|
|
89
|
-
"jszip": "^3.5.0",
|
|
90
|
-
"lodash": "^4.17.21",
|
|
91
|
-
"lodash-es": "^4.17.21",
|
|
92
|
-
"mock-fs": "^5.1.2",
|
|
93
|
-
"moment": "^2.29.1",
|
|
94
|
-
"nanomatch": "^1.2.13",
|
|
95
|
-
"node-fetch": "^2.7.0",
|
|
96
|
-
"path-browserify": "^1.0.1",
|
|
97
|
-
"prettier": "^2.5.1",
|
|
98
|
-
"qs": "^6.10.1",
|
|
99
|
-
"semver": "^7.3.4",
|
|
100
|
-
"short-uuid": "^3.1.1",
|
|
101
|
-
"tslib": "^2.3.1",
|
|
102
|
-
"util": "^0.12.5"
|
|
103
|
-
},
|
|
104
|
-
"browser": {
|
|
105
|
-
"path": "path-browserify",
|
|
106
|
-
"lodash": "lodash-es",
|
|
107
|
-
"prettier": "prettier/standalone"
|
|
108
|
-
},
|
|
109
|
-
"devDependencies": {
|
|
110
|
-
"@babel/preset-typescript": "^7.12.13",
|
|
111
|
-
"@iceworks/spec": "^1.4.2",
|
|
112
|
-
"@types/babel__traverse": "^7.11.0",
|
|
113
|
-
"@types/file-saver": "^2.0.7",
|
|
114
|
-
"@types/jest": "^27.0.2",
|
|
115
|
-
"@types/lodash": "^4.14.162",
|
|
116
|
-
"@types/node": "^14.18.63",
|
|
117
|
-
"@types/prettier": "^2.4.2",
|
|
118
|
-
"@types/react": "^19.0.10",
|
|
119
|
-
"@typescript-eslint/eslint-plugin": "^4.12.0",
|
|
120
|
-
"@typescript-eslint/parser": "^4.12.0",
|
|
121
|
-
"concurrently": "^6.5.1",
|
|
122
|
-
"cross-env": "^7.0.3",
|
|
123
|
-
"esbuild": "^0.14.5",
|
|
124
|
-
"esbuild-plugin-alias": "^0.2.1",
|
|
125
|
-
"esbuild-plugin-ignore": "^1.1.0",
|
|
126
|
-
"esbuild-visualizer": "^0.3.1",
|
|
127
|
-
"eslint": "^7.17.0",
|
|
128
|
-
"eslint-config-ali": "^11.4.1",
|
|
129
|
-
"eslint-plugin-import": "^2.22.1",
|
|
130
|
-
"eslint-plugin-react": "^7.22.0",
|
|
131
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
132
|
-
"jest": "^26.5.2",
|
|
133
|
-
"jest-util": "^27.4.2",
|
|
134
|
-
"rimraf": "^3.0.2",
|
|
135
|
-
"standard-version": "^9.1.1",
|
|
136
|
-
"ts-jest": "^26.5.2",
|
|
137
|
-
"ts-loader": "^6.2.2",
|
|
138
|
-
"ts-node": "^8.10.2",
|
|
139
|
-
"tsconfig-paths": "^3.9.0",
|
|
140
|
-
"typescript": "4.x",
|
|
141
|
-
"yargs-parser": "^20.2.9"
|
|
142
|
-
},
|
|
143
|
-
"engines": {
|
|
144
|
-
"node": ">=10.0.0"
|
|
145
|
-
},
|
|
146
|
-
"publishConfig": {
|
|
147
|
-
"access": "public",
|
|
148
|
-
"registry": "https://registry.npmjs.org/"
|
|
149
|
-
},
|
|
150
|
-
"repository": {
|
|
151
|
-
"type": "http",
|
|
152
|
-
"url": "https://github.com/alibaba/lowcode-engine/tree/main/modules/code-generator"
|
|
153
|
-
},
|
|
154
|
-
"bugs": "https://github.com/alibaba/lowcode-engine/issues",
|
|
155
|
-
"homepage": "https://github.com/alibaba/lowcode-engine/#readme"
|
|
156
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dckj-npm/lowcode-code-generator",
|
|
3
|
+
"version": "1.2.24",
|
|
4
|
+
"description": "出码引擎 for LowCode Engine(额外添加vue3处理方案)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"module": "es/index.js",
|
|
8
|
+
"typings": "types/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"lib",
|
|
12
|
+
"es",
|
|
13
|
+
"dist",
|
|
14
|
+
"types",
|
|
15
|
+
"standalone",
|
|
16
|
+
"standalone-worker",
|
|
17
|
+
"standalone-loader",
|
|
18
|
+
"loader",
|
|
19
|
+
"CHANGELOG.md",
|
|
20
|
+
"README.md",
|
|
21
|
+
"CONTRIBUTING.md"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"lowcode-code-generator": "bin/lowcode-code-generator.js"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"start": "jest --watchAll",
|
|
28
|
+
"build": "npm run clean && node scripts/build",
|
|
29
|
+
"build:standalone": "node scripts/build-standalone",
|
|
30
|
+
"clean": "rimraf es lib dist types generated demo coverage output test-cases/*/*/actual",
|
|
31
|
+
"lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
|
|
32
|
+
"lintfix": "eslint --ext .jsx,.js,.ts,.tsx --fix src/",
|
|
33
|
+
"check:types": "tsc --noEmit",
|
|
34
|
+
"template": "node ./scripts/build-template-static-files.js",
|
|
35
|
+
"test": "npm run test:normal && npm run test:standalone",
|
|
36
|
+
"test:normal": "jest",
|
|
37
|
+
"test:standalone": "node scripts/test-standalone",
|
|
38
|
+
"test:cov": "jest --coverage",
|
|
39
|
+
"test:update-snapshots": "cross-env UPDATE_EXPECTED=true jest -u",
|
|
40
|
+
"analyze:standalone": "ANALYZE=true node scripts/build-standalone",
|
|
41
|
+
"release:beta": "standard-version -t @alilc/lowcode-code-generator\\@ -r patch --prerelease beta && git push --follow-tags && npm publish --tag beta",
|
|
42
|
+
"release:patch": "standard-version -t @alilc/lowcode-code-generator\\@ -r patch && git push --follow-tags && npm publish",
|
|
43
|
+
"release:minor": "standard-version -t @alilc/lowcode-code-generator\\@ -r minor && git push --follow-tags && npm publish",
|
|
44
|
+
"prepablishOnly": "npm run build",
|
|
45
|
+
"demo": "node bin/lowcode-code-generator.js -i schema.json -o demo -s vuejs3"
|
|
46
|
+
},
|
|
47
|
+
"standard-version": {
|
|
48
|
+
"skip": {
|
|
49
|
+
"changelog": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"husky": {
|
|
53
|
+
"hooks": {
|
|
54
|
+
"pre-commit": "lint-staged",
|
|
55
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"lint-staged": {
|
|
59
|
+
"**/*.{js,jsx,ts,tsx}": "eslint"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@alilc/lowcode-code-generator": "^1.1.7",
|
|
63
|
+
"@alilc/lowcode-types": "^1.0.0",
|
|
64
|
+
"@babel/generator": "^7.12.11",
|
|
65
|
+
"@babel/parser": "^7.12.11",
|
|
66
|
+
"@babel/runtime": "^7.12.5",
|
|
67
|
+
"@babel/traverse": "^7.12.12",
|
|
68
|
+
"@babel/types": "^7.12.12",
|
|
69
|
+
"@types/debug": "^4.1.7",
|
|
70
|
+
"@types/fs-extra": "^9.0.12",
|
|
71
|
+
"@types/glob": "^7.2.0",
|
|
72
|
+
"@types/lodash": "^4.14.162",
|
|
73
|
+
"@types/node-fetch": "2.x",
|
|
74
|
+
"@types/qs": "^6.9.6",
|
|
75
|
+
"@types/semver": "^7.3.4",
|
|
76
|
+
"babel-jest": "^26.5.2",
|
|
77
|
+
"buffer": "^6.0.3",
|
|
78
|
+
"chalk": "^4.1.0",
|
|
79
|
+
"change-case": "^3.1.0",
|
|
80
|
+
"commander": "^6.1.0",
|
|
81
|
+
"debug": "^4.3.2",
|
|
82
|
+
"file-saver": "^2.0.5",
|
|
83
|
+
"fp-ts": "^2.11.9",
|
|
84
|
+
"fs-extra": "9.x",
|
|
85
|
+
"glob": "^7.2.0",
|
|
86
|
+
"html-entities": "^2.3.2",
|
|
87
|
+
"json5": "^2.2.0",
|
|
88
|
+
"jsonc": "^2.0.0",
|
|
89
|
+
"jszip": "^3.5.0",
|
|
90
|
+
"lodash": "^4.17.21",
|
|
91
|
+
"lodash-es": "^4.17.21",
|
|
92
|
+
"mock-fs": "^5.1.2",
|
|
93
|
+
"moment": "^2.29.1",
|
|
94
|
+
"nanomatch": "^1.2.13",
|
|
95
|
+
"node-fetch": "^2.7.0",
|
|
96
|
+
"path-browserify": "^1.0.1",
|
|
97
|
+
"prettier": "^2.5.1",
|
|
98
|
+
"qs": "^6.10.1",
|
|
99
|
+
"semver": "^7.3.4",
|
|
100
|
+
"short-uuid": "^3.1.1",
|
|
101
|
+
"tslib": "^2.3.1",
|
|
102
|
+
"util": "^0.12.5"
|
|
103
|
+
},
|
|
104
|
+
"browser": {
|
|
105
|
+
"path": "path-browserify",
|
|
106
|
+
"lodash": "lodash-es",
|
|
107
|
+
"prettier": "prettier/standalone"
|
|
108
|
+
},
|
|
109
|
+
"devDependencies": {
|
|
110
|
+
"@babel/preset-typescript": "^7.12.13",
|
|
111
|
+
"@iceworks/spec": "^1.4.2",
|
|
112
|
+
"@types/babel__traverse": "^7.11.0",
|
|
113
|
+
"@types/file-saver": "^2.0.7",
|
|
114
|
+
"@types/jest": "^27.0.2",
|
|
115
|
+
"@types/lodash": "^4.14.162",
|
|
116
|
+
"@types/node": "^14.18.63",
|
|
117
|
+
"@types/prettier": "^2.4.2",
|
|
118
|
+
"@types/react": "^19.0.10",
|
|
119
|
+
"@typescript-eslint/eslint-plugin": "^4.12.0",
|
|
120
|
+
"@typescript-eslint/parser": "^4.12.0",
|
|
121
|
+
"concurrently": "^6.5.1",
|
|
122
|
+
"cross-env": "^7.0.3",
|
|
123
|
+
"esbuild": "^0.14.5",
|
|
124
|
+
"esbuild-plugin-alias": "^0.2.1",
|
|
125
|
+
"esbuild-plugin-ignore": "^1.1.0",
|
|
126
|
+
"esbuild-visualizer": "^0.3.1",
|
|
127
|
+
"eslint": "^7.17.0",
|
|
128
|
+
"eslint-config-ali": "^11.4.1",
|
|
129
|
+
"eslint-plugin-import": "^2.22.1",
|
|
130
|
+
"eslint-plugin-react": "^7.22.0",
|
|
131
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
132
|
+
"jest": "^26.5.2",
|
|
133
|
+
"jest-util": "^27.4.2",
|
|
134
|
+
"rimraf": "^3.0.2",
|
|
135
|
+
"standard-version": "^9.1.1",
|
|
136
|
+
"ts-jest": "^26.5.2",
|
|
137
|
+
"ts-loader": "^6.2.2",
|
|
138
|
+
"ts-node": "^8.10.2",
|
|
139
|
+
"tsconfig-paths": "^3.9.0",
|
|
140
|
+
"typescript": "4.x",
|
|
141
|
+
"yargs-parser": "^20.2.9"
|
|
142
|
+
},
|
|
143
|
+
"engines": {
|
|
144
|
+
"node": ">=10.0.0"
|
|
145
|
+
},
|
|
146
|
+
"publishConfig": {
|
|
147
|
+
"access": "public",
|
|
148
|
+
"registry": "https://registry.npmjs.org/"
|
|
149
|
+
},
|
|
150
|
+
"repository": {
|
|
151
|
+
"type": "http",
|
|
152
|
+
"url": "https://github.com/alibaba/lowcode-engine/tree/main/modules/code-generator"
|
|
153
|
+
},
|
|
154
|
+
"bugs": "https://github.com/alibaba/lowcode-engine/issues",
|
|
155
|
+
"homepage": "https://github.com/alibaba/lowcode-engine/#readme"
|
|
156
|
+
}
|
package/standalone/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
if (process.env.NODE_ENV !== 'development') {
|
|
3
|
-
module.exports = require('../dist/standalone.min');
|
|
4
|
-
} else {
|
|
5
|
-
module.exports = require('../dist/standalone');
|
|
6
|
-
}
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
if (process.env.NODE_ENV !== 'development') {
|
|
3
|
+
module.exports = require('../dist/standalone.min');
|
|
4
|
+
} else {
|
|
5
|
+
module.exports = require('../dist/standalone');
|
|
6
|
+
}
|
package/standalone/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"internal": true,
|
|
3
|
-
"main": "./index.js",
|
|
4
|
-
"types": "../types/standalone.d.ts"
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"internal": true,
|
|
3
|
+
"main": "./index.js",
|
|
4
|
+
"types": "../types/standalone.d.ts"
|
|
5
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
module.exports = require('../dist/standalone-loader');
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
module.exports = require('../dist/standalone-loader');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"internal": true,
|
|
3
|
-
"main": "../dist/standalone-loader.js",
|
|
4
|
-
"module": "../dist/standalone-loader.esm.js",
|
|
5
|
-
"types": "../types/standalone-loader.d.ts"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"internal": true,
|
|
3
|
+
"main": "../dist/standalone-loader.js",
|
|
4
|
+
"module": "../dist/standalone-loader.esm.js",
|
|
5
|
+
"types": "../types/standalone-loader.d.ts"
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
if (process.env.NODE_ENV !== 'development') {
|
|
3
|
-
module.exports = require('../dist/standalone-worker.min');
|
|
4
|
-
} else {
|
|
5
|
-
module.exports = require('../dist/standalone-worker');
|
|
6
|
-
}
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
if (process.env.NODE_ENV !== 'development') {
|
|
3
|
+
module.exports = require('../dist/standalone-worker.min');
|
|
4
|
+
} else {
|
|
5
|
+
module.exports = require('../dist/standalone-worker');
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"internal": true,
|
|
3
|
-
"main": "./index.js",
|
|
4
|
-
"types": "../lib/standalone-worker.d.ts"
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"internal": true,
|
|
3
|
+
"main": "./index.js",
|
|
4
|
+
"types": "../lib/standalone-worker.d.ts"
|
|
5
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TComponentAnalyzer } from '../types';
|
|
2
|
-
export declare const componentAnalyzer: TComponentAnalyzer;
|
|
1
|
+
import type { TComponentAnalyzer } from '../types';
|
|
2
|
+
export declare const componentAnalyzer: TComponentAnalyzer;
|
package/types/cli/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './run';
|
|
2
|
-
export * from './init-solution';
|
|
1
|
+
export * from './run';
|
|
2
|
+
export * from './init-solution';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function initSolution(args: string[], options: {
|
|
2
|
-
quiet?: boolean;
|
|
3
|
-
verbose?: boolean;
|
|
4
|
-
}): Promise<0 | 1>;
|
|
1
|
+
export declare function initSolution(args: string[], options: {
|
|
2
|
+
quiet?: boolean;
|
|
3
|
+
verbose?: boolean;
|
|
4
|
+
}): Promise<0 | 1>;
|
package/types/cli/run.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 执行出码 CLI 命令
|
|
3
|
-
* @param args 入参数组
|
|
4
|
-
* @param options 选项
|
|
5
|
-
* @returns {Promise<number>} 错误码
|
|
6
|
-
*/
|
|
7
|
-
export declare function run(args: string[], options: {
|
|
8
|
-
solution: string;
|
|
9
|
-
input?: string;
|
|
10
|
-
output?: string;
|
|
11
|
-
quiet?: boolean;
|
|
12
|
-
verbose?: boolean;
|
|
13
|
-
solutionOptions?: string;
|
|
14
|
-
resourceList?: string;
|
|
15
|
-
}): Promise<number>;
|
|
1
|
+
/**
|
|
2
|
+
* 执行出码 CLI 命令
|
|
3
|
+
* @param args 入参数组
|
|
4
|
+
* @param options 选项
|
|
5
|
+
* @returns {Promise<number>} 错误码
|
|
6
|
+
*/
|
|
7
|
+
export declare function run(args: string[], options: {
|
|
8
|
+
solution: string;
|
|
9
|
+
input?: string;
|
|
10
|
+
output?: string;
|
|
11
|
+
quiet?: boolean;
|
|
12
|
+
verbose?: boolean;
|
|
13
|
+
solutionOptions?: string;
|
|
14
|
+
resourceList?: string;
|
|
15
|
+
}): Promise<number>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getLowcodeSolutionTemplateFiles(): {
|
|
2
|
-
file: string;
|
|
3
|
-
content: string;
|
|
4
|
-
}[];
|
|
1
|
+
export declare function getLowcodeSolutionTemplateFiles(): {
|
|
2
|
+
file: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}[];
|
package/types/config/env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CODE_GENERATOR_ROOT: string;
|
|
1
|
+
export declare const CODE_GENERATOR_ROOT: string;
|
package/types/const/file.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FileType } from '../types/core';
|
|
2
|
-
export declare const FILE_TYPE_FAMILY: FileType[][];
|
|
1
|
+
import { FileType } from '../types/core';
|
|
2
|
+
export declare const FILE_TYPE_FAMILY: FileType[][];
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export declare const COMMON_CHUNK_NAME: {
|
|
2
|
-
ExternalDepsImport: string;
|
|
3
|
-
InternalDepsImport: string;
|
|
4
|
-
ImportAliasDefine: string;
|
|
5
|
-
FileVarDefine: string;
|
|
6
|
-
FileUtilDefine: string;
|
|
7
|
-
FileMainContent: string;
|
|
8
|
-
FileExport: string;
|
|
9
|
-
StyleDepsImport: string;
|
|
10
|
-
StyleCssContent: string;
|
|
11
|
-
HtmlContent: string;
|
|
12
|
-
CustomContent: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const CLASS_DEFINE_CHUNK_NAME: {
|
|
15
|
-
Start: string;
|
|
16
|
-
ConstructorStart: string;
|
|
17
|
-
ConstructorContent: string;
|
|
18
|
-
ConstructorEnd: string;
|
|
19
|
-
StaticVar: string;
|
|
20
|
-
StaticMethod: string;
|
|
21
|
-
InsVar: string;
|
|
22
|
-
InsVarMethod: string;
|
|
23
|
-
InsMethod: string;
|
|
24
|
-
InsPrivateMethod: string;
|
|
25
|
-
End: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const TEMPLATE_DEFINE_CHUNK_NAME: {
|
|
28
|
-
TemplateStart: string;
|
|
29
|
-
TemplateDom: string;
|
|
30
|
-
TemplateEnd: string;
|
|
31
|
-
ScriptStart: string;
|
|
32
|
-
ExternalDepsImport: string;
|
|
33
|
-
InternalDepsImport: string;
|
|
34
|
-
ConstVar: string;
|
|
35
|
-
LetVar: string;
|
|
36
|
-
DataSourceMapStart: string;
|
|
37
|
-
DataSourceMapContent: string;
|
|
38
|
-
DataSourceMapEnd: string;
|
|
39
|
-
OnMountedStart: string;
|
|
40
|
-
OnMountedContent: string;
|
|
41
|
-
OnMountedEnd: string;
|
|
42
|
-
UnMountedStart: string;
|
|
43
|
-
UnMountedContent: string;
|
|
44
|
-
UnMountedEnd: string;
|
|
45
|
-
Method: string;
|
|
46
|
-
ScriptEnd: string;
|
|
47
|
-
CssStyleStart: string;
|
|
48
|
-
CssStyleImport: string;
|
|
49
|
-
CssStyleEnd: string;
|
|
50
|
-
};
|
|
51
|
-
export declare const DEFAULT_LINK_AFTER: {
|
|
52
|
-
[x: string]: string[];
|
|
53
|
-
};
|
|
54
|
-
export declare const VUE_DEFAULT_LINK_AFTER: {
|
|
55
|
-
[x: string]: string[];
|
|
56
|
-
};
|
|
57
|
-
export declare const COMMON_SUB_MODULE_NAME = "index";
|
|
58
|
-
export declare const VUE_MODULE_NAME = "@dckj-npm/lowcode-vue-materials";
|
|
1
|
+
export declare const COMMON_CHUNK_NAME: {
|
|
2
|
+
ExternalDepsImport: string;
|
|
3
|
+
InternalDepsImport: string;
|
|
4
|
+
ImportAliasDefine: string;
|
|
5
|
+
FileVarDefine: string;
|
|
6
|
+
FileUtilDefine: string;
|
|
7
|
+
FileMainContent: string;
|
|
8
|
+
FileExport: string;
|
|
9
|
+
StyleDepsImport: string;
|
|
10
|
+
StyleCssContent: string;
|
|
11
|
+
HtmlContent: string;
|
|
12
|
+
CustomContent: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const CLASS_DEFINE_CHUNK_NAME: {
|
|
15
|
+
Start: string;
|
|
16
|
+
ConstructorStart: string;
|
|
17
|
+
ConstructorContent: string;
|
|
18
|
+
ConstructorEnd: string;
|
|
19
|
+
StaticVar: string;
|
|
20
|
+
StaticMethod: string;
|
|
21
|
+
InsVar: string;
|
|
22
|
+
InsVarMethod: string;
|
|
23
|
+
InsMethod: string;
|
|
24
|
+
InsPrivateMethod: string;
|
|
25
|
+
End: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const TEMPLATE_DEFINE_CHUNK_NAME: {
|
|
28
|
+
TemplateStart: string;
|
|
29
|
+
TemplateDom: string;
|
|
30
|
+
TemplateEnd: string;
|
|
31
|
+
ScriptStart: string;
|
|
32
|
+
ExternalDepsImport: string;
|
|
33
|
+
InternalDepsImport: string;
|
|
34
|
+
ConstVar: string;
|
|
35
|
+
LetVar: string;
|
|
36
|
+
DataSourceMapStart: string;
|
|
37
|
+
DataSourceMapContent: string;
|
|
38
|
+
DataSourceMapEnd: string;
|
|
39
|
+
OnMountedStart: string;
|
|
40
|
+
OnMountedContent: string;
|
|
41
|
+
OnMountedEnd: string;
|
|
42
|
+
UnMountedStart: string;
|
|
43
|
+
UnMountedContent: string;
|
|
44
|
+
UnMountedEnd: string;
|
|
45
|
+
Method: string;
|
|
46
|
+
ScriptEnd: string;
|
|
47
|
+
CssStyleStart: string;
|
|
48
|
+
CssStyleImport: string;
|
|
49
|
+
CssStyleEnd: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const DEFAULT_LINK_AFTER: {
|
|
52
|
+
[x: string]: string[];
|
|
53
|
+
};
|
|
54
|
+
export declare const VUE_DEFAULT_LINK_AFTER: {
|
|
55
|
+
[x: string]: string[];
|
|
56
|
+
};
|
|
57
|
+
export declare const COMMON_SUB_MODULE_NAME = "index";
|
|
58
|
+
export declare const VUE_MODULE_NAME = "@dckj-npm/lowcode-vue-materials";
|
package/types/const/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const NATIVE_ELE_PKG = "native";
|
|
2
|
-
export declare const CONTAINER_TYPE: {
|
|
3
|
-
COMPONENT: string;
|
|
4
|
-
BLOCK: string;
|
|
5
|
-
PAGE: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const SUPPORT_SCHEMA_VERSION_LIST: string[];
|
|
8
|
-
export declare const BUILTIN_SLOT_NAMES: string[];
|
|
9
|
-
export declare const isBuiltinSlotName: (name: string) => boolean;
|
|
10
|
-
export * from './file';
|
|
11
|
-
export * from './generator';
|
|
1
|
+
export declare const NATIVE_ELE_PKG = "native";
|
|
2
|
+
export declare const CONTAINER_TYPE: {
|
|
3
|
+
COMPONENT: string;
|
|
4
|
+
BLOCK: string;
|
|
5
|
+
PAGE: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const SUPPORT_SCHEMA_VERSION_LIST: string[];
|
|
8
|
+
export declare const BUILTIN_SLOT_NAMES: string[];
|
|
9
|
+
export declare const isBuiltinSlotName: (name: string) => boolean;
|
|
10
|
+
export * from './file';
|
|
11
|
+
export * from './generator';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IScope } from '../../../types';
|
|
2
|
-
export declare function transformJsExpr(expr: string, scope: IScope, { dontWrapEval, dontTransformThis2ContextAtRootScope }?: {
|
|
3
|
-
dontWrapEval?: boolean | undefined;
|
|
4
|
-
dontTransformThis2ContextAtRootScope?: boolean | undefined;
|
|
5
|
-
}): string;
|
|
1
|
+
import { IScope } from '../../../types';
|
|
2
|
+
export declare function transformJsExpr(expr: string, scope: IScope, { dontWrapEval, dontTransformThis2ContextAtRootScope }?: {
|
|
3
|
+
dontWrapEval?: boolean | undefined;
|
|
4
|
+
dontTransformThis2ContextAtRootScope?: boolean | undefined;
|
|
5
|
+
}): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Expression } from '@babel/types';
|
|
2
|
-
import { IScope } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* 将所有的 this.xxx 替换为 __$$context.xxx
|
|
5
|
-
* @param expr
|
|
6
|
-
*/
|
|
7
|
-
export declare function transformThis2Context(expr: string | Expression, scope: IScope, { ignoreRootScope }?: {
|
|
8
|
-
ignoreRootScope?: boolean | undefined;
|
|
9
|
-
}): string;
|
|
1
|
+
import { Expression } from '@babel/types';
|
|
2
|
+
import { IScope } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* 将所有的 this.xxx 替换为 __$$context.xxx
|
|
5
|
+
* @param expr
|
|
6
|
+
*/
|
|
7
|
+
export declare function transformThis2Context(expr: string | Expression, scope: IScope, { ignoreRootScope }?: {
|
|
8
|
+
ignoreRootScope?: boolean | undefined;
|
|
9
|
+
}): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 判断是否是原子类型的表达式
|
|
3
|
-
*/
|
|
4
|
-
export declare function isLiteralAtomicExpr(expr: string): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* 判断是否是原子类型的表达式
|
|
3
|
+
*/
|
|
4
|
+
export declare function isLiteralAtomicExpr(expr: string): boolean;
|