testeranto 0.79.38 → 0.79.40
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 +30 -0
- package/dist/common/Project.js +0 -20
- package/dist/common/TaskManBackEnd.js +17 -22
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Init.js +25 -0
- package/dist/module/Project.js +0 -20
- package/dist/module/TaskManBackEnd.js +17 -22
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +2 -22
- package/dist/types/Init.d.ts +2 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +6 -2
- package/src/Init.ts +51 -0
- package/src/Project.ts +0 -21
- package/src/TaskManBackEnd.ts +17 -17
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const fs_1 = __importDefault(require("fs"));
|
|
7
|
+
exports.default = async (partialConfig) => {
|
|
8
|
+
const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
|
|
9
|
+
fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
|
|
10
|
+
fs_1.default.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js", "./docs/TaskManFrontEnd.js");
|
|
11
|
+
fs_1.default.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css", "./docs/TaskManFrontEnd.css");
|
|
12
|
+
fs_1.default.writeFileSync(`${config.outdir}/index.html`, `<!DOCTYPE html>
|
|
13
|
+
<html lang="en">
|
|
14
|
+
|
|
15
|
+
<head>
|
|
16
|
+
<meta name="description" content="Webpage description goes here" />
|
|
17
|
+
<meta charset="utf-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
19
|
+
<meta name="author" content="" />
|
|
20
|
+
|
|
21
|
+
<title>TaskMan</title>
|
|
22
|
+
|
|
23
|
+
<link rel="stylesheet" href="/docs/TaskManFrontEnd.css" />
|
|
24
|
+
<script type="module" src="/docs/TaskManFrontEnd.js"></script>
|
|
25
|
+
</head>
|
|
26
|
+
|
|
27
|
+
<body><div id="root">react is loading</div></body>
|
|
28
|
+
|
|
29
|
+
</html>`);
|
|
30
|
+
};
|
package/dist/common/Project.js
CHANGED
|
@@ -67,26 +67,6 @@ class ITProject {
|
|
|
67
67
|
})));
|
|
68
68
|
const [nodeEntryPoints, webEntryPoints] = getRunnables(this.config.tests);
|
|
69
69
|
console.log(`this.getSecondaryEndpointsPoints("web")`, this.getSecondaryEndpointsPoints("web"));
|
|
70
|
-
// console.log("nodeEntryPoints", nodeEntryPoints);
|
|
71
|
-
// console.log("webEntryPoints", webEntryPoints);
|
|
72
|
-
// nodeEntryPoints.forEach((nep) => {
|
|
73
|
-
// const f = `${process.cwd()}/${nep}`;
|
|
74
|
-
// console.log("nep", f);
|
|
75
|
-
// import(f).then((module) => {
|
|
76
|
-
// return module.default.then((defaultModule) => {
|
|
77
|
-
// console.log("defaultModule", defaultModule);
|
|
78
|
-
// // defaultModule
|
|
79
|
-
// // .receiveTestResourceConfig(argz)
|
|
80
|
-
// // .then((x) => {
|
|
81
|
-
// // console.log("then", x);
|
|
82
|
-
// // return x;
|
|
83
|
-
// // })
|
|
84
|
-
// // .catch((e) => {
|
|
85
|
-
// // console.log("catch", e);
|
|
86
|
-
// // });
|
|
87
|
-
// });
|
|
88
|
-
// });
|
|
89
|
-
// });
|
|
90
70
|
(0, glob_1.glob)(`./${this.config.outdir}/chunk-*.mjs`, {
|
|
91
71
|
ignore: "node_modules/**",
|
|
92
72
|
}).then((chunks) => {
|
|
@@ -79,10 +79,10 @@ exports.default = (partialConfig) => {
|
|
|
79
79
|
const huddleModdle = ChatChannel.discriminator("Huddle", mongooseSchemas_1.HuddleSchema);
|
|
80
80
|
const roomsModel = ChatChannel.discriminator("Room", mongooseSchemas_1.RoomSchema);
|
|
81
81
|
app.get("/TaskManFrontend.js", (req, res) => {
|
|
82
|
-
res.sendFile(`${process.cwd()}/TaskManFrontEnd.js`);
|
|
82
|
+
res.sendFile(`${process.cwd()}/docs/TaskManFrontEnd.js`);
|
|
83
83
|
});
|
|
84
84
|
app.get("/TaskManFrontEnd.css", (req, res) => {
|
|
85
|
-
res.sendFile(`${process.cwd()}/TaskManFrontEnd.css`);
|
|
85
|
+
res.sendFile(`${process.cwd()}/docs/TaskManFrontEnd.css`);
|
|
86
86
|
});
|
|
87
87
|
// app.get(`/preMergeCheck`, async (req, res) => {
|
|
88
88
|
// const commit = req.params["commit"];
|
|
@@ -102,26 +102,21 @@ exports.default = (partialConfig) => {
|
|
|
102
102
|
// // res.sendFile(`${process.cwd()}/docs/testeranto.json`);
|
|
103
103
|
// res.json(config);
|
|
104
104
|
// });
|
|
105
|
-
app.get("/", (req, res) => {
|
|
106
|
-
|
|
107
|
-
<html lang="en">
|
|
108
|
-
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
<body><div id="root">react is loading</div></body>
|
|
122
|
-
|
|
123
|
-
</html>`);
|
|
124
|
-
});
|
|
105
|
+
// app.get("/", (req, res) => {
|
|
106
|
+
// res.send(`<!DOCTYPE html>
|
|
107
|
+
// <html lang="en">
|
|
108
|
+
// <head>
|
|
109
|
+
// <meta name="description" content="Webpage description goes here" />
|
|
110
|
+
// <meta charset="utf-8" />
|
|
111
|
+
// <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
112
|
+
// <meta name="author" content="" />
|
|
113
|
+
// <title>TaskMan</title>
|
|
114
|
+
// <link rel="stylesheet" href="/TaskManFrontEnd.css" />
|
|
115
|
+
// <script type="module" src="/TaskManFrontEnd.js"></script>
|
|
116
|
+
// </head>
|
|
117
|
+
// <body><div id="root">react is loading</div></body>
|
|
118
|
+
// </html>`);
|
|
119
|
+
// });
|
|
125
120
|
app.listen(port, () => {
|
|
126
121
|
console.log(`Example app listening on port ${port}`);
|
|
127
122
|
});
|