testeranto 0.79.33 → 0.79.34
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/TaskManBackEnd.js +4 -2
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Project.js +1 -0
- 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/TaskManBackEnd.d.ts +2 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/Project.ts +12 -0
- 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);
|
|
@@ -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>
|