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.
@@ -0,0 +1,25 @@
1
+ import fs from "fs";
2
+ export default async (partialConfig) => {
3
+ const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
4
+ fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
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>`);
25
+ };
@@ -61,26 +61,6 @@ export class ITProject {
61
61
  })));
62
62
  const [nodeEntryPoints, webEntryPoints] = getRunnables(this.config.tests);
63
63
  console.log(`this.getSecondaryEndpointsPoints("web")`, this.getSecondaryEndpointsPoints("web"));
64
- // console.log("nodeEntryPoints", nodeEntryPoints);
65
- // console.log("webEntryPoints", webEntryPoints);
66
- // nodeEntryPoints.forEach((nep) => {
67
- // const f = `${process.cwd()}/${nep}`;
68
- // console.log("nep", f);
69
- // import(f).then((module) => {
70
- // return module.default.then((defaultModule) => {
71
- // console.log("defaultModule", defaultModule);
72
- // // defaultModule
73
- // // .receiveTestResourceConfig(argz)
74
- // // .then((x) => {
75
- // // console.log("then", x);
76
- // // return x;
77
- // // })
78
- // // .catch((e) => {
79
- // // console.log("catch", e);
80
- // // });
81
- // });
82
- // });
83
- // });
84
64
  glob(`./${this.config.outdir}/chunk-*.mjs`, {
85
65
  ignore: "node_modules/**",
86
66
  }).then((chunks) => {
@@ -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
- res.send(`<!DOCTYPE html>
102
- <html lang="en">
103
-
104
- <head>
105
- <meta name="description" content="Webpage description goes here" />
106
- <meta charset="utf-8" />
107
- <meta name="viewport" content="width=device-width, initial-scale=1" />
108
- <meta name="author" content="" />
109
-
110
- <title>TaskMan</title>
111
-
112
- <link rel="stylesheet" href="/TaskManFrontEnd.css" />
113
- <script type="module" src="/TaskManFrontEnd.js"></script>
114
- </head>
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
  });