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.
@@ -60,6 +60,7 @@ class ITProject {
60
60
  constructor(config) {
61
61
  this.mode = `up`;
62
62
  this.config = config;
63
+ fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
63
64
  Promise.resolve(Promise.all([...this.getSecondaryEndpointsPoints("web")].map(async (sourceFilePath) => {
64
65
  const sourceFileSplit = sourceFilePath.split("/");
65
66
  const sourceDir = sourceFileSplit.slice(0, -1);
@@ -19,7 +19,6 @@ const mongooseSchemas_1 = require("./mongooseSchemas");
19
19
  // },
20
20
  // ],
21
21
  // });
22
- const app = (0, express_1.default)();
23
22
  const port = 3000;
24
23
  function findTextFiles(dir, fileList = []) {
25
24
  const files = fs_1.default.readdirSync(dir);
@@ -60,7 +59,9 @@ function listToTree(fileList) {
60
59
  }
61
60
  return root.children;
62
61
  }
63
- exports.default = () => {
62
+ exports.default = (config) => {
63
+ fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
64
+ const app = (0, express_1.default)();
64
65
  new mongodb_1.MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`)
65
66
  .connect()
66
67
  .then(async (conn) => {
@@ -98,6 +99,7 @@ exports.default = () => {
98
99
  // });
99
100
  app.get("/testeranto.json", (req, res) => {
100
101
  res.sendFile(`${process.cwd()}/docs/testeranto.json`);
102
+ // res.json(config);
101
103
  });
102
104
  app.get("/", (req, res) => {
103
105
  res.send(`<!DOCTYPE html>