testeranto 0.79.36 → 0.79.38

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.
@@ -96,17 +96,14 @@ function listToTree(fileList) {
96
96
  }
97
97
  return root.children;
98
98
  }
99
- var TaskManBackEnd_default = (config) => {
99
+ var TaskManBackEnd_default = (partialConfig) => {
100
+ const config = {
101
+ ...partialConfig,
102
+ buildDir: process.cwd() + "/" + partialConfig.outdir
103
+ };
100
104
  fs.writeFileSync(
101
105
  `${config.outdir}/testeranto.json`,
102
- JSON.stringify(
103
- {
104
- ...config,
105
- buildDir: process.cwd() + "/" + config.outdir
106
- },
107
- null,
108
- 2
109
- )
106
+ JSON.stringify(config, null, 2)
110
107
  );
111
108
  const app = express();
112
109
  new MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`).connect().then(async (conn) => {
@@ -131,9 +128,6 @@ var TaskManBackEnd_default = (config) => {
131
128
  app.get("/TaskManFrontEnd.css", (req, res) => {
132
129
  res.sendFile(`${process.cwd()}/TaskManFrontEnd.css`);
133
130
  });
134
- app.get("/testeranto.json", (req, res) => {
135
- res.sendFile(`${process.cwd()}/docs/testeranto.json`);
136
- });
137
131
  app.get("/", (req, res) => {
138
132
  res.send(`<!DOCTYPE html>
139
133
  <html lang="en">
@@ -187,7 +181,7 @@ var TaskManBackEnd_default = (config) => {
187
181
  );
188
182
  });
189
183
  });
190
- app.use("/docs", express.static(path.join(process.cwd(), "docs")));
184
+ app.use("/", express.static(path.join(process.cwd())));
191
185
  app.get("/docGal/fs.json", (req, res) => {
192
186
  const directoryPath = "./";
193
187
  res.json(listToTree(findTextFiles(directoryPath)));
@@ -2,6 +2,6 @@ import { IBaseConfig, IRunTime } from "./lib/types.js";
2
2
  export declare class ITProject {
3
3
  config: IBaseConfig;
4
4
  mode: `up` | `down`;
5
- constructor(config: IBaseConfig);
5
+ constructor(configs: IBaseConfig);
6
6
  getSecondaryEndpointsPoints(runtime?: IRunTime): string[];
7
7
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (configs: any) => Promise<void>;
1
+ declare const _default: (partialConfig: any) => Promise<void>;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { IBaseConfig } from "./lib/types";
2
- declare const _default: (config: IBaseConfig) => void;
2
+ declare const _default: (partialConfig: IBaseConfig) => void;
3
3
  export default _default;