@pronto-tools-and-more/pronto 6.26.2 → 6.27.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pronto-tools-and-more/pronto",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.27.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"@lvce-editor/ipc": "^11.0.1",
|
|
18
18
|
"@lvce-editor/json-rpc": "^4.1.0",
|
|
19
19
|
"@lvce-editor/verror": "^1.4.0",
|
|
20
|
-
"@pronto-tools-and-more/file-watcher": "6.
|
|
21
|
-
"@pronto-tools-and-more/files": "6.
|
|
22
|
-
"@pronto-tools-and-more/network-process": "6.
|
|
23
|
-
"@pronto-tools-and-more/sass-compiler": "6.
|
|
24
|
-
"@pronto-tools-and-more/components-renderer": "6.
|
|
25
|
-
"@pronto-tools-and-more/components": "6.
|
|
26
|
-
"@pronto-tools-and-more/schema-process": "6.
|
|
20
|
+
"@pronto-tools-and-more/file-watcher": "6.27.0",
|
|
21
|
+
"@pronto-tools-and-more/files": "6.27.0",
|
|
22
|
+
"@pronto-tools-and-more/network-process": "6.27.0",
|
|
23
|
+
"@pronto-tools-and-more/sass-compiler": "6.27.0",
|
|
24
|
+
"@pronto-tools-and-more/components-renderer": "6.27.0",
|
|
25
|
+
"@pronto-tools-and-more/components": "6.27.0",
|
|
26
|
+
"@pronto-tools-and-more/schema-process": "6.27.0",
|
|
27
27
|
"execa": "^9.4.0",
|
|
28
28
|
"express": "^4.21.0"
|
|
29
29
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import * as Cwd from "../Cwd/Cwd.js";
|
|
3
|
+
|
|
4
|
+
export const getSrc = (mode, splitViews) => {
|
|
5
|
+
if (mode === "slim") {
|
|
6
|
+
return join(Cwd.cwd, ".tmp", "dist", "src");
|
|
7
|
+
}
|
|
8
|
+
if (splitViews) {
|
|
9
|
+
return join(Cwd.cwd, ".tmp", "dist", "src");
|
|
10
|
+
}
|
|
11
|
+
return join(Cwd.cwd, "src");
|
|
12
|
+
};
|
|
@@ -4,17 +4,11 @@ import * as Config from "../Config/Config.js";
|
|
|
4
4
|
import * as CreateZip from "../CreateZip/CreateZip.js";
|
|
5
5
|
import * as Cwd from "../Cwd/Cwd.js";
|
|
6
6
|
import * as GetSessionId from "../GetSessionId/GetSessionId.js";
|
|
7
|
+
import * as GetSrc from "../GetSrc/GetSrc.js";
|
|
7
8
|
import * as GetZipUploadMessage from "../GetZipUploadMessage/GetZipUploadMessage.js";
|
|
8
9
|
import * as NetworkProcess from "../NetworkProcess/NetworkProcess.js";
|
|
9
10
|
import * as UploadZip from "../UploadZip/UploadZip.js";
|
|
10
11
|
|
|
11
|
-
const getSrc = (mode) => {
|
|
12
|
-
if (mode === "slim") {
|
|
13
|
-
return join(Cwd.cwd, ".tmp", "dist", "src");
|
|
14
|
-
}
|
|
15
|
-
return join(Cwd.cwd, "src");
|
|
16
|
-
};
|
|
17
|
-
|
|
18
12
|
const maxRetries = 20;
|
|
19
13
|
const waitBetweenRetries = 60_000;
|
|
20
14
|
|
|
@@ -27,6 +21,7 @@ export const pushCodeTo = async ({ preview, appId }) => {
|
|
|
27
21
|
uploadBaseUrl,
|
|
28
22
|
uploadTimeout,
|
|
29
23
|
mode,
|
|
24
|
+
splitViews,
|
|
30
25
|
} = Config;
|
|
31
26
|
if (!userEmail) {
|
|
32
27
|
throw new Error(`missing user email`);
|
|
@@ -35,7 +30,7 @@ export const pushCodeTo = async ({ preview, appId }) => {
|
|
|
35
30
|
throw new Error("missing user password");
|
|
36
31
|
}
|
|
37
32
|
const outFile = join(Cwd.cwd, ".tmp", "upload.zip");
|
|
38
|
-
const src = getSrc(mode);
|
|
33
|
+
const src = GetSrc.getSrc(mode, splitViews);
|
|
39
34
|
const sessionId = await GetSessionId.getSessionId({
|
|
40
35
|
loginUrl,
|
|
41
36
|
userEmail,
|