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.
@@ -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
- export {};
1
+ declare const _default: (configs: any) => Promise<void>;
2
+ export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => void;
1
+ import { IBaseConfig } from "./lib/types";
2
+ declare const _default: (config: IBaseConfig) => void;
2
3
  export default _default;