testeranto 0.79.38 → 0.79.39
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 +26 -0
- package/dist/common/Project.js +0 -20
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Init.js +21 -0
- package/dist/module/Project.js +0 -20
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- 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 +54 -0
- package/src/Project.ts +0 -21
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import readline from "readline";
|
|
2
|
+
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
|
+
export default async (partialConfig) => {
|
|
17
|
+
const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
|
|
18
|
+
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");
|
|
21
|
+
};
|
package/dist/module/Project.js
CHANGED
|
@@ -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) => {
|