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.
@@ -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>