testeranto 0.79.33 → 0.79.35
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/Puppeteer.js +5 -4
- 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/Puppeteer.js +5 -4
- 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/Puppeteer.d.ts +2 -1
- package/dist/types/TaskManBackEnd.d.ts +2 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Project.ts +12 -0
- package/src/Puppeteer.ts +15 -6
- package/src/TaskManBackEnd.ts +18 -2
|
@@ -58,7 +58,6 @@ var RoomSchema = new mongoose.Schema({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/TaskManBackEnd.ts
|
|
61
|
-
var app = express();
|
|
62
61
|
var port = 3e3;
|
|
63
62
|
function findTextFiles(dir, fileList = []) {
|
|
64
63
|
const files = fs.readdirSync(dir);
|
|
@@ -97,7 +96,19 @@ function listToTree(fileList) {
|
|
|
97
96
|
}
|
|
98
97
|
return root.children;
|
|
99
98
|
}
|
|
100
|
-
var TaskManBackEnd_default = () => {
|
|
99
|
+
var TaskManBackEnd_default = (config) => {
|
|
100
|
+
fs.writeFileSync(
|
|
101
|
+
`${config.outdir}/testeranto.json`,
|
|
102
|
+
JSON.stringify(
|
|
103
|
+
{
|
|
104
|
+
...config,
|
|
105
|
+
buildDir: process.cwd() + "/" + config.outdir
|
|
106
|
+
},
|
|
107
|
+
null,
|
|
108
|
+
2
|
|
109
|
+
)
|
|
110
|
+
);
|
|
111
|
+
const app = express();
|
|
101
112
|
new MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`).connect().then(async (conn) => {
|
|
102
113
|
const db = conn.db("taskman");
|
|
103
114
|
await mongoose2.connect(
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: (configs: any) => Promise<void>;
|
|
2
|
+
export default _default;
|