@lowdefy/build 4.0.2 → 4.1.0
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/dist/build/buildJs/buildJs.js +43 -0
- package/dist/build/buildJs/generateJsFile.js +30 -0
- package/dist/build/buildJs/jsMapParser.js +46 -0
- package/dist/build/buildJs/writeJs.js +26 -0
- package/dist/createContext.js +1 -0
- package/dist/defaultTypesMap.js +474 -441
- package/dist/index.js +12 -2
- package/dist/test/testContext.js +2 -1
- package/package.json +38 -38
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import buildApp from './build/buildApp.js';
|
|
|
20
20
|
import buildAuth from './build/buildAuth/buildAuth.js';
|
|
21
21
|
import buildConnections from './build/buildConnections.js';
|
|
22
22
|
import buildImports from './build/buildImports/buildImports.js';
|
|
23
|
+
import buildJs from './build/buildJs/buildJs.js';
|
|
23
24
|
import buildMenu from './build/buildMenu.js';
|
|
24
25
|
import buildPages from './build/buildPages/buildPages.js';
|
|
25
26
|
import buildRefs from './build/buildRefs/buildRefs.js';
|
|
@@ -27,17 +28,18 @@ import buildTypes from './build/buildTypes.js';
|
|
|
27
28
|
import cleanBuildDirectory from './build/cleanBuildDirectory.js';
|
|
28
29
|
import copyPublicFolder from './build/copyPublicFolder.js';
|
|
29
30
|
import testSchema from './build/testSchema.js';
|
|
30
|
-
import validateConfig from './build/validateConfig.js';
|
|
31
31
|
import updateServerPackageJson from './build/updateServerPackageJson.js';
|
|
32
|
+
import validateConfig from './build/validateConfig.js';
|
|
32
33
|
import writeApp from './build/writeApp.js';
|
|
33
34
|
import writeAuth from './build/writeAuth.js';
|
|
34
|
-
import writePluginImports from './build/writePluginImports/writePluginImports.js';
|
|
35
35
|
import writeConfig from './build/writeConfig.js';
|
|
36
36
|
import writeConnections from './build/writeConnections.js';
|
|
37
37
|
import writeGlobal from './build/writeGlobal.js';
|
|
38
|
+
import writeJs from './build/buildJs/writeJs.js';
|
|
38
39
|
import writeMaps from './build/writeMaps.js';
|
|
39
40
|
import writeMenus from './build/writeMenus.js';
|
|
40
41
|
import writePages from './build/writePages.js';
|
|
42
|
+
import writePluginImports from './build/writePluginImports/writePluginImports.js';
|
|
41
43
|
import writeRequests from './build/writeRequests.js';
|
|
42
44
|
import writeTypes from './build/writeTypes.js';
|
|
43
45
|
async function build(options) {
|
|
@@ -77,6 +79,10 @@ async function build(options) {
|
|
|
77
79
|
components,
|
|
78
80
|
context
|
|
79
81
|
});
|
|
82
|
+
buildJs({
|
|
83
|
+
components,
|
|
84
|
+
context
|
|
85
|
+
});
|
|
80
86
|
addKeys({
|
|
81
87
|
components,
|
|
82
88
|
context
|
|
@@ -136,6 +142,10 @@ async function build(options) {
|
|
|
136
142
|
components,
|
|
137
143
|
context
|
|
138
144
|
});
|
|
145
|
+
await writeJs({
|
|
146
|
+
components,
|
|
147
|
+
context
|
|
148
|
+
});
|
|
139
149
|
await updateServerPackageJson({
|
|
140
150
|
components,
|
|
141
151
|
context
|
package/dist/test/testContext.js
CHANGED
|
@@ -48,7 +48,8 @@ function testContext({ writeBuildArtifact, configDirectory, readConfigFile, logg
|
|
|
48
48
|
writeBuildArtifact: writeBuildArtifact || (()=>{}),
|
|
49
49
|
readConfigFile: readConfigFile || (()=>{}),
|
|
50
50
|
refMap: {},
|
|
51
|
-
keyMap: {}
|
|
51
|
+
keyMap: {},
|
|
52
|
+
jsMap: {}
|
|
52
53
|
};
|
|
53
54
|
context.logger = {
|
|
54
55
|
...defaultLogger,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/build",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"dist/*"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@lowdefy/ajv": "4.0
|
|
48
|
-
"@lowdefy/blocks-basic": "4.0
|
|
49
|
-
"@lowdefy/blocks-loaders": "4.0
|
|
50
|
-
"@lowdefy/helpers": "4.0
|
|
51
|
-
"@lowdefy/node-utils": "4.0
|
|
52
|
-
"@lowdefy/nunjucks": "4.0
|
|
53
|
-
"@lowdefy/operators": "4.0
|
|
54
|
-
"@lowdefy/operators-js": "4.0
|
|
47
|
+
"@lowdefy/ajv": "4.1.0",
|
|
48
|
+
"@lowdefy/blocks-basic": "4.1.0",
|
|
49
|
+
"@lowdefy/blocks-loaders": "4.1.0",
|
|
50
|
+
"@lowdefy/helpers": "4.1.0",
|
|
51
|
+
"@lowdefy/node-utils": "4.1.0",
|
|
52
|
+
"@lowdefy/nunjucks": "4.1.0",
|
|
53
|
+
"@lowdefy/operators": "4.1.0",
|
|
54
|
+
"@lowdefy/operators-js": "4.1.0",
|
|
55
55
|
"ajv": "8.12.0",
|
|
56
56
|
"json5": "2.2.3",
|
|
57
57
|
"yaml": "2.3.4",
|
|
@@ -59,35 +59,35 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@jest/globals": "28.1.3",
|
|
62
|
-
"@lowdefy/actions-core": "4.0
|
|
63
|
-
"@lowdefy/actions-pdf-make": "4.0
|
|
64
|
-
"@lowdefy/blocks-aggrid": "4.0
|
|
65
|
-
"@lowdefy/blocks-algolia": "4.0
|
|
66
|
-
"@lowdefy/blocks-antd": "4.0
|
|
67
|
-
"@lowdefy/blocks-color-selectors": "4.0
|
|
68
|
-
"@lowdefy/blocks-echarts": "4.0
|
|
69
|
-
"@lowdefy/blocks-google-maps": "4.0
|
|
70
|
-
"@lowdefy/blocks-markdown": "4.0
|
|
71
|
-
"@lowdefy/blocks-qr": "4.0
|
|
72
|
-
"@lowdefy/connection-axios-http": "4.0
|
|
73
|
-
"@lowdefy/connection-elasticsearch": "4.0
|
|
74
|
-
"@lowdefy/connection-google-sheets": "4.0
|
|
75
|
-
"@lowdefy/connection-knex": "4.0
|
|
76
|
-
"@lowdefy/connection-mongodb": "4.0
|
|
77
|
-
"@lowdefy/connection-redis": "4.0
|
|
78
|
-
"@lowdefy/connection-sendgrid": "4.0
|
|
79
|
-
"@lowdefy/connection-stripe": "4.0
|
|
80
|
-
"@lowdefy/operators-change-case": "4.0
|
|
81
|
-
"@lowdefy/operators-diff": "4.0
|
|
82
|
-
"@lowdefy/operators-moment": "4.0
|
|
83
|
-
"@lowdefy/operators-mql": "4.0
|
|
84
|
-
"@lowdefy/operators-nunjucks": "4.0
|
|
85
|
-
"@lowdefy/operators-uuid": "4.0
|
|
86
|
-
"@lowdefy/operators-yaml": "4.0
|
|
87
|
-
"@lowdefy/plugin-auth0": "4.0
|
|
88
|
-
"@lowdefy/plugin-aws": "4.0
|
|
89
|
-
"@lowdefy/plugin-csv": "4.0
|
|
90
|
-
"@lowdefy/plugin-next-auth": "4.0
|
|
62
|
+
"@lowdefy/actions-core": "4.1.0",
|
|
63
|
+
"@lowdefy/actions-pdf-make": "4.1.0",
|
|
64
|
+
"@lowdefy/blocks-aggrid": "4.1.0",
|
|
65
|
+
"@lowdefy/blocks-algolia": "4.1.0",
|
|
66
|
+
"@lowdefy/blocks-antd": "4.1.0",
|
|
67
|
+
"@lowdefy/blocks-color-selectors": "4.1.0",
|
|
68
|
+
"@lowdefy/blocks-echarts": "4.1.0",
|
|
69
|
+
"@lowdefy/blocks-google-maps": "4.1.0",
|
|
70
|
+
"@lowdefy/blocks-markdown": "4.1.0",
|
|
71
|
+
"@lowdefy/blocks-qr": "4.1.0",
|
|
72
|
+
"@lowdefy/connection-axios-http": "4.1.0",
|
|
73
|
+
"@lowdefy/connection-elasticsearch": "4.1.0",
|
|
74
|
+
"@lowdefy/connection-google-sheets": "4.1.0",
|
|
75
|
+
"@lowdefy/connection-knex": "4.1.0",
|
|
76
|
+
"@lowdefy/connection-mongodb": "4.1.0",
|
|
77
|
+
"@lowdefy/connection-redis": "4.1.0",
|
|
78
|
+
"@lowdefy/connection-sendgrid": "4.1.0",
|
|
79
|
+
"@lowdefy/connection-stripe": "4.1.0",
|
|
80
|
+
"@lowdefy/operators-change-case": "4.1.0",
|
|
81
|
+
"@lowdefy/operators-diff": "4.1.0",
|
|
82
|
+
"@lowdefy/operators-moment": "4.1.0",
|
|
83
|
+
"@lowdefy/operators-mql": "4.1.0",
|
|
84
|
+
"@lowdefy/operators-nunjucks": "4.1.0",
|
|
85
|
+
"@lowdefy/operators-uuid": "4.1.0",
|
|
86
|
+
"@lowdefy/operators-yaml": "4.1.0",
|
|
87
|
+
"@lowdefy/plugin-auth0": "4.1.0",
|
|
88
|
+
"@lowdefy/plugin-aws": "4.1.0",
|
|
89
|
+
"@lowdefy/plugin-csv": "4.1.0",
|
|
90
|
+
"@lowdefy/plugin-next-auth": "4.1.0",
|
|
91
91
|
"@swc/cli": "0.1.63",
|
|
92
92
|
"@swc/core": "1.3.99",
|
|
93
93
|
"@swc/jest": "0.2.29",
|