testeranto 0.79.33 → 0.79.35
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/Project.js +1 -0
- package/dist/common/Puppeteer.js +5 -4
- package/dist/common/TaskManBackEnd.js +4 -2
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Project.js +1 -0
- package/dist/module/Puppeteer.js +5 -4
- package/dist/module/TaskManBackEnd.js +4 -2
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +13 -2
- package/dist/types/Puppeteer.d.ts +2 -1
- package/dist/types/TaskManBackEnd.d.ts +2 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Project.ts +12 -0
- package/src/Puppeteer.ts +15 -6
- package/src/TaskManBackEnd.ts +18 -2
package/dist/module/Project.js
CHANGED
|
@@ -54,6 +54,7 @@ export class ITProject {
|
|
|
54
54
|
constructor(config) {
|
|
55
55
|
this.mode = `up`;
|
|
56
56
|
this.config = config;
|
|
57
|
+
fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
|
|
57
58
|
Promise.resolve(Promise.all([...this.getSecondaryEndpointsPoints("web")].map(async (sourceFilePath) => {
|
|
58
59
|
const sourceFileSplit = sourceFilePath.split("/");
|
|
59
60
|
const sourceDir = sourceFileSplit.slice(0, -1);
|
package/dist/module/Puppeteer.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import readline from "readline";
|
|
2
2
|
import fs from "fs";
|
|
3
|
-
import { jsonc } from "jsonc";
|
|
4
3
|
import { PM_Main } from "./PM/main.js";
|
|
5
4
|
import { destinationOfRuntime } from "./utils.js";
|
|
6
5
|
var mode = process.argv[2] === "-dev" ? "DEV" : "PROD";
|
|
@@ -16,8 +15,11 @@ process.stdin.on("keypress", (str, key) => {
|
|
|
16
15
|
process.exit();
|
|
17
16
|
}
|
|
18
17
|
});
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export default async (configs) => {
|
|
19
|
+
fs.writeFileSync(`${configs.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, configs), { buildDir: process.cwd() + "/" + configs.outdir }), null, 2));
|
|
20
|
+
// const configs = jsonc.parse(
|
|
21
|
+
// (await fs.readFileSync("./docs/testeranto.json")).toString()
|
|
22
|
+
// ) as IBuiltConfig;
|
|
21
23
|
const pm = new PM_Main(configs);
|
|
22
24
|
await pm.startPuppeteer({
|
|
23
25
|
waitForInitialPage: false,
|
|
@@ -96,4 +98,3 @@ const main = async () => {
|
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
};
|
|
99
|
-
main();
|
|
@@ -14,7 +14,6 @@ import { ganttSchema, kanbanSchema, userSchema, featuresSchema, RoomSchema, Hudd
|
|
|
14
14
|
// },
|
|
15
15
|
// ],
|
|
16
16
|
// });
|
|
17
|
-
const app = express();
|
|
18
17
|
const port = 3000;
|
|
19
18
|
function findTextFiles(dir, fileList = []) {
|
|
20
19
|
const files = fs.readdirSync(dir);
|
|
@@ -55,7 +54,9 @@ function listToTree(fileList) {
|
|
|
55
54
|
}
|
|
56
55
|
return root.children;
|
|
57
56
|
}
|
|
58
|
-
export default () => {
|
|
57
|
+
export default (config) => {
|
|
58
|
+
fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
|
|
59
|
+
const app = express();
|
|
59
60
|
new MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`)
|
|
60
61
|
.connect()
|
|
61
62
|
.then(async (conn) => {
|
|
@@ -93,6 +94,7 @@ export default () => {
|
|
|
93
94
|
// });
|
|
94
95
|
app.get("/testeranto.json", (req, res) => {
|
|
95
96
|
res.sendFile(`${process.cwd()}/docs/testeranto.json`);
|
|
97
|
+
// res.json(config);
|
|
96
98
|
});
|
|
97
99
|
app.get("/", (req, res) => {
|
|
98
100
|
res.send(`<!DOCTYPE html>
|