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.
- package/dist/common/Project.js +9 -17
- package/dist/common/Puppeteer.js +12 -14
- package/dist/common/TaskManBackEnd.js +8 -7
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/Project.js +9 -17
- package/dist/module/Puppeteer.js +12 -14
- package/dist/module/TaskManBackEnd.js +8 -7
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +7 -13
- package/dist/types/Project.d.ts +1 -1
- package/dist/types/Puppeteer.d.ts +1 -1
- package/dist/types/TaskManBackEnd.d.ts +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/Project.ts +16 -29
- package/src/Puppeteer.ts +18 -16
- package/src/TaskManBackEnd.ts +12 -14
|
@@ -96,17 +96,14 @@ function listToTree(fileList) {
|
|
|
96
96
|
}
|
|
97
97
|
return root.children;
|
|
98
98
|
}
|
|
99
|
-
var TaskManBackEnd_default = (
|
|
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("/
|
|
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)));
|
package/dist/types/Project.d.ts
CHANGED
|
@@ -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(
|
|
5
|
+
constructor(configs: IBaseConfig);
|
|
6
6
|
getSecondaryEndpointsPoints(runtime?: IRunTime): string[];
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (
|
|
1
|
+
declare const _default: (partialConfig: any) => Promise<void>;
|
|
2
2
|
export default _default;
|