testeranto 0.79.61 → 0.79.63
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/Report.Dockerfile +2 -1
- package/dist/common/Puppeteer.js +43 -3
- package/dist/common/TaskManBackEnd.js +1 -1
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Puppeteer.js +43 -3
- package/dist/module/TaskManBackEnd.js +1 -1
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/Puppeteer.ts +78 -44
- package/src/TaskManBackEnd.ts +1 -1
package/Report.Dockerfile
CHANGED
|
@@ -36,8 +36,9 @@ RUN yarn run init
|
|
|
36
36
|
|
|
37
37
|
# # RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
|
|
38
38
|
|
|
39
|
-
EXPOSE
|
|
39
|
+
EXPOSE 8080
|
|
40
40
|
EXPOSE 27017
|
|
41
41
|
ENV MONGO_HOST=host.docker.internal
|
|
42
|
+
ENV HTTPS_PORT=8080
|
|
42
43
|
# # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
43
44
|
CMD ["yarn", "report"]
|
package/dist/common/Puppeteer.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const readline_1 = __importDefault(require("readline"));
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const recursive_watch_1 = __importDefault(require("recursive-watch"));
|
|
8
9
|
const main_js_1 = require("./PM/main.js");
|
|
9
10
|
const utils_js_1 = require("./utils.js");
|
|
10
11
|
var mode = process.argv[2] === "-dev" ? "DEV" : "PROD";
|
|
@@ -73,9 +74,7 @@ exports.default = async (partialConfig) => {
|
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
76
|
console.log("ready and watching for changes...", config.buildDir);
|
|
76
|
-
|
|
77
|
-
recursive: true,
|
|
78
|
-
}, (eventType, changedFile) => {
|
|
77
|
+
(0, recursive_watch_1.default)(config.buildDir, (eventType, changedFile) => {
|
|
79
78
|
if (changedFile) {
|
|
80
79
|
config.tests.forEach(([test, runtime, tr, sidecars]) => {
|
|
81
80
|
if (eventType === "change" || eventType === "rename") {
|
|
@@ -101,4 +100,45 @@ exports.default = async (partialConfig) => {
|
|
|
101
100
|
});
|
|
102
101
|
}
|
|
103
102
|
});
|
|
103
|
+
// does not work on linux
|
|
104
|
+
// fs.watch(
|
|
105
|
+
// config.buildDir,
|
|
106
|
+
// {
|
|
107
|
+
// recursive: true,
|
|
108
|
+
// },
|
|
109
|
+
// (eventType, changedFile) => {
|
|
110
|
+
// if (changedFile) {
|
|
111
|
+
// config.tests.forEach(([test, runtime, tr, sidecars]) => {
|
|
112
|
+
// if (eventType === "change" || eventType === "rename") {
|
|
113
|
+
// if (
|
|
114
|
+
// changedFile ===
|
|
115
|
+
// test
|
|
116
|
+
// .replace("./", "node/")
|
|
117
|
+
// .split(".")
|
|
118
|
+
// .slice(0, -1)
|
|
119
|
+
// .concat("mjs")
|
|
120
|
+
// .join(".")
|
|
121
|
+
// ) {
|
|
122
|
+
// pm.launchNode(test, destinationOfRuntime(test, "node", config));
|
|
123
|
+
// }
|
|
124
|
+
// if (
|
|
125
|
+
// changedFile ===
|
|
126
|
+
// test
|
|
127
|
+
// .replace("./", "web/")
|
|
128
|
+
// .split(".")
|
|
129
|
+
// .slice(0, -1)
|
|
130
|
+
// .concat("mjs")
|
|
131
|
+
// .join(".")
|
|
132
|
+
// ) {
|
|
133
|
+
// pm.launchWeb(
|
|
134
|
+
// test,
|
|
135
|
+
// destinationOfRuntime(test, "web", config),
|
|
136
|
+
// sidecars
|
|
137
|
+
// );
|
|
138
|
+
// }
|
|
139
|
+
// }
|
|
140
|
+
// });
|
|
141
|
+
// }
|
|
142
|
+
// }
|
|
143
|
+
// );
|
|
104
144
|
};
|
|
@@ -10,7 +10,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
10
10
|
const fs_1 = __importDefault(require("fs"));
|
|
11
11
|
const mongooseSchemas_1 = require("./mongooseSchemas");
|
|
12
12
|
console.log("hello TaskMan Backend", process.env);
|
|
13
|
-
const port = 3000;
|
|
13
|
+
const port = process.env.HTTPS_PORT || "3000";
|
|
14
14
|
function findTextFiles(dir, fileList = []) {
|
|
15
15
|
const files = fs_1.default.readdirSync(dir);
|
|
16
16
|
for (const file of files) {
|