testeranto 0.79.39 → 0.79.41
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/common/Init.js +20 -16
- package/dist/common/TaskManBackEnd.js +17 -22
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Init.js +20 -16
- package/dist/module/TaskManBackEnd.js +17 -22
- package/dist/module/TaskManFrontEnd.js +4 -4
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +2 -22
- package/dist/prebuild/TaskManFrontEnd.js +4 -4
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Init.ts +24 -27
- package/src/TaskManBackEnd.ts +17 -17
- package/src/TaskManFrontEnd.tsx +4 -4
package/dist/module/Init.js
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import readline from "readline";
|
|
2
1
|
import fs from "fs";
|
|
3
|
-
var mode = process.argv[2] === "-dev" ? "DEV" : "PROD";
|
|
4
|
-
const node2web = {};
|
|
5
|
-
const web2node = {};
|
|
6
|
-
const childProcesses = {};
|
|
7
|
-
readline.emitKeypressEvents(process.stdin);
|
|
8
|
-
if (process.stdin.isTTY)
|
|
9
|
-
process.stdin.setRawMode(true);
|
|
10
|
-
console.log("\n Puppeteer is running. Press 'q' to quit\n");
|
|
11
|
-
process.stdin.on("keypress", (str, key) => {
|
|
12
|
-
if (key.name === "q") {
|
|
13
|
-
process.exit();
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
2
|
export default async (partialConfig) => {
|
|
17
3
|
const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
|
|
18
4
|
fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
|
|
19
|
-
fs.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js", "docs/TaskManFrontEnd.js");
|
|
20
|
-
fs.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css", "docs/TaskManFrontEnd.css");
|
|
5
|
+
fs.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js", "./docs/TaskManFrontEnd.js");
|
|
6
|
+
fs.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css", "./docs/TaskManFrontEnd.css");
|
|
7
|
+
fs.writeFileSync(`${config.outdir}/index.html`, `<!DOCTYPE html>
|
|
8
|
+
<html lang="en">
|
|
9
|
+
|
|
10
|
+
<head>
|
|
11
|
+
<meta name="description" content="Webpage description goes here" />
|
|
12
|
+
<meta charset="utf-8" />
|
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
14
|
+
<meta name="author" content="" />
|
|
15
|
+
|
|
16
|
+
<title>TaskMan</title>
|
|
17
|
+
|
|
18
|
+
<link rel="stylesheet" href="/docs/TaskManFrontEnd.css" />
|
|
19
|
+
<script type="module" src="/docs/TaskManFrontEnd.js"></script>
|
|
20
|
+
</head>
|
|
21
|
+
|
|
22
|
+
<body><div id="root">react is loading</div></body>
|
|
23
|
+
|
|
24
|
+
</html>`);
|
|
21
25
|
};
|
|
@@ -74,10 +74,10 @@ export default (partialConfig) => {
|
|
|
74
74
|
const huddleModdle = ChatChannel.discriminator("Huddle", HuddleSchema);
|
|
75
75
|
const roomsModel = ChatChannel.discriminator("Room", RoomSchema);
|
|
76
76
|
app.get("/TaskManFrontend.js", (req, res) => {
|
|
77
|
-
res.sendFile(`${process.cwd()}/TaskManFrontEnd.js`);
|
|
77
|
+
res.sendFile(`${process.cwd()}/docs/TaskManFrontEnd.js`);
|
|
78
78
|
});
|
|
79
79
|
app.get("/TaskManFrontEnd.css", (req, res) => {
|
|
80
|
-
res.sendFile(`${process.cwd()}/TaskManFrontEnd.css`);
|
|
80
|
+
res.sendFile(`${process.cwd()}/docs/TaskManFrontEnd.css`);
|
|
81
81
|
});
|
|
82
82
|
// app.get(`/preMergeCheck`, async (req, res) => {
|
|
83
83
|
// const commit = req.params["commit"];
|
|
@@ -97,26 +97,21 @@ export default (partialConfig) => {
|
|
|
97
97
|
// // res.sendFile(`${process.cwd()}/docs/testeranto.json`);
|
|
98
98
|
// res.json(config);
|
|
99
99
|
// });
|
|
100
|
-
app.get("/", (req, res) => {
|
|
101
|
-
|
|
102
|
-
<html lang="en">
|
|
103
|
-
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<body><div id="root">react is loading</div></body>
|
|
117
|
-
|
|
118
|
-
</html>`);
|
|
119
|
-
});
|
|
100
|
+
// app.get("/", (req, res) => {
|
|
101
|
+
// res.send(`<!DOCTYPE html>
|
|
102
|
+
// <html lang="en">
|
|
103
|
+
// <head>
|
|
104
|
+
// <meta name="description" content="Webpage description goes here" />
|
|
105
|
+
// <meta charset="utf-8" />
|
|
106
|
+
// <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
107
|
+
// <meta name="author" content="" />
|
|
108
|
+
// <title>TaskMan</title>
|
|
109
|
+
// <link rel="stylesheet" href="/TaskManFrontEnd.css" />
|
|
110
|
+
// <script type="module" src="/TaskManFrontEnd.js"></script>
|
|
111
|
+
// </head>
|
|
112
|
+
// <body><div id="root">react is loading</div></body>
|
|
113
|
+
// </html>`);
|
|
114
|
+
// });
|
|
120
115
|
app.listen(port, () => {
|
|
121
116
|
console.log(`Example app listening on port ${port}`);
|
|
122
117
|
});
|
|
@@ -464,10 +464,10 @@ const Report = () => {
|
|
|
464
464
|
const src = test[0];
|
|
465
465
|
const runtime = test[1];
|
|
466
466
|
const s = [tests.buildDir, runtime].concat(src.split(".").slice(0, -1).join(".")).join("/");
|
|
467
|
-
const exitcode = await (await fetch(config.outdir +
|
|
468
|
-
const log = await (await fetch(config.outdir +
|
|
469
|
-
const testresults = await (await fetch(config.outdir +
|
|
470
|
-
const manifest = await (await fetch(config.outdir +
|
|
467
|
+
const exitcode = await (await fetch(config.outdir + s + "/exitcode")).text();
|
|
468
|
+
const log = await (await fetch(config.outdir + s + "/log.txt")).text();
|
|
469
|
+
const testresults = await (await fetch(config.outdir + s + "/tests.json")).json();
|
|
470
|
+
const manifest = await (await fetch(config.outdir + s + "/manifest.json")).json();
|
|
471
471
|
res({ src, exitcode, log, testresults, manifest });
|
|
472
472
|
});
|
|
473
473
|
}));
|