testeranto 0.79.60 → 0.79.62

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.
@@ -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";
@@ -14,6 +15,7 @@ const childProcesses = {};
14
15
  readline_1.default.emitKeypressEvents(process.stdin);
15
16
  if (process.stdin.isTTY)
16
17
  process.stdin.setRawMode(true);
18
+ console.log("hello Puppeteer", process.env);
17
19
  console.log("\n Puppeteer is running. Press 'q' to quit\n");
18
20
  process.stdin.on("keypress", (str, key) => {
19
21
  if (key.name === "q") {
@@ -26,7 +28,7 @@ exports.default = async (partialConfig) => {
26
28
  const pm = new main_js_1.PM_Main(config);
27
29
  await pm.startPuppeteer({
28
30
  waitForInitialPage: false,
29
- executablePath: "/opt/homebrew/bin/chromium",
31
+ executablePath: process.env.CHROMIUM_PATH || "/opt/homebrew/bin/chromium",
30
32
  headless: true,
31
33
  // dumpio: true,
32
34
  args: [
@@ -72,9 +74,7 @@ exports.default = async (partialConfig) => {
72
74
  }
73
75
  });
74
76
  console.log("ready and watching for changes...", config.buildDir);
75
- fs_1.default.watch(config.buildDir, {
76
- recursive: true,
77
- }, (eventType, changedFile) => {
77
+ (0, recursive_watch_1.default)(config.buildDir, (eventType, changedFile) => {
78
78
  if (changedFile) {
79
79
  config.tests.forEach(([test, runtime, tr, sidecars]) => {
80
80
  if (eventType === "change" || eventType === "rename") {
@@ -100,4 +100,45 @@ exports.default = async (partialConfig) => {
100
100
  });
101
101
  }
102
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
+ // );
103
144
  };
@@ -9,16 +9,7 @@ const mongoose_1 = __importDefault(require("mongoose"));
9
9
  const path_1 = __importDefault(require("path"));
10
10
  const fs_1 = __importDefault(require("fs"));
11
11
  const mongooseSchemas_1 = require("./mongooseSchemas");
12
- // export const chatChannel = new mongoose.Schema<IChatChannel>({
13
- // // name: { type: String, required: true },
14
- // users: [
15
- // {
16
- // type: mongoose.Schema.Types.ObjectId,
17
- // ref: "User",
18
- // required: true,
19
- // },
20
- // ],
21
- // });
12
+ console.log("hello TaskMan Backend", process.env);
22
13
  const port = 3000;
23
14
  function findTextFiles(dir, fileList = []) {
24
15
  const files = fs_1.default.readdirSync(dir);