testeranto 0.79.69 → 0.81.0
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/.aider.chat.history.md +980 -0
- package/.aider.input.history +87 -0
- package/.aider.tags.cache.v3/1c/30/af1de2ad7a137afeddb1b01e0c27.val +0 -0
- package/.aider.tags.cache.v3/1d/63/88318b65ce58b6bb0487e8ce2656.val +0 -0
- package/.aider.tags.cache.v3/2e/67/16ae65530b40038e48e00d666c63.val +0 -0
- package/.aider.tags.cache.v3/6f/94/80488a232866fcce7ee657da488b.val +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.eslintrc.js +5 -2
- package/README.md +10 -107
- package/build-tests.ts +16 -0
- package/dist/common/build-tests.js +38 -0
- package/dist/common/init-docs.js +8 -0
- package/dist/common/run-tests.js +34 -0
- package/dist/common/src/Aider.js +143 -0
- package/dist/common/src/Init.js +10 -0
- package/dist/common/{PM → src/PM}/main.js +58 -49
- package/dist/common/{PM → src/PM}/node.js +1 -1
- package/dist/common/{Project.js → src/Project.js} +46 -38
- package/dist/common/{Puppeteer.js → src/Puppeteer.js} +51 -40
- package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/web.js +37 -38
- package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +17 -2
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +79 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -3
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +4 -4
- package/dist/common/{lib → src/lib}/abstractBase.js +80 -24
- package/dist/common/{lib → src/lib}/basebuilder.js +14 -3
- package/dist/common/{lib → src/lib}/core.js +47 -3
- package/dist/common/testeranto.js +15 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/build-tests.js +10 -0
- package/dist/module/init-docs.js +3 -0
- package/dist/module/run-tests.js +6 -0
- package/dist/module/src/Aider.js +136 -0
- package/dist/module/src/Init.js +5 -0
- package/dist/module/{PM → src/PM}/main.js +58 -49
- package/dist/module/{PM → src/PM}/node.js +1 -1
- package/dist/module/{Project.js → src/Project.js} +46 -38
- package/dist/module/{Puppeteer.js → src/Puppeteer.js} +51 -40
- package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/web.js +37 -38
- package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +34 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +74 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +4 -2
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +4 -4
- package/dist/module/{lib → src/lib}/abstractBase.js +80 -24
- package/dist/module/{lib → src/lib}/basebuilder.js +14 -3
- package/dist/module/{lib → src/lib}/core.js +47 -3
- package/dist/module/testeranto.js +13 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/build-tests.d.ts +3 -0
- package/dist/types/init-docs.d.ts +2 -0
- package/dist/types/run-tests.d.ts +2 -0
- package/dist/types/src/Aider.d.ts +1 -0
- package/dist/types/{PM → src/PM}/index.d.ts +1 -1
- package/dist/types/{PM → src/PM}/main.d.ts +7 -1
- package/dist/types/{Project.d.ts → src/Project.d.ts} +6 -1
- package/dist/types/{Types.d.ts → src/Types.d.ts} +3 -2
- package/dist/types/{lib → src/lib}/abstractBase.d.ts +1 -0
- package/dist/types/testeranto.d.ts +16 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/init-docs.ts +5 -0
- package/package.json +54 -29
- package/run-tests.ts +9 -0
- package/secret +1 -0
- package/secret.env +2 -0
- package/src/Aider.ts +168 -0
- package/src/Init.ts +0 -31
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +71 -61
- package/src/PM/node.ts +1 -1
- package/src/Project.ts +55 -48
- package/src/Puppeteer.ts +66 -52
- package/src/SubPackages/react-dom/jsx/web.ts +46 -49
- package/src/SubPackages/react-test-renderer/jsx/index.ts +25 -2
- package/src/Types.ts +3 -1
- package/src/esbuildConfigs/inputFilesPlugin.ts +78 -31
- package/src/esbuildConfigs/node.ts +2 -2
- package/src/esbuildConfigs/web.ts +4 -4
- package/src/lib/abstractBase.ts +88 -30
- package/src/lib/basebuilder.ts +17 -3
- package/src/lib/core.ts +55 -13
- package/testeranto.ts +13 -0
- package/tsconfig.common.json +12 -4
- package/tsconfig.json +9 -2
- package/tsconfig.module.json +2 -2
- package/tsconfig.types.json +1 -1
- package/Report.Dockerfile +0 -44
- package/dist/common/Features.js +0 -51
- package/dist/common/Init.js +0 -30
- package/dist/common/Reporter.js +0 -112
- package/dist/common/Scheduler.js +0 -1
- package/dist/common/TaskManBackEnd.js +0 -167
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
- package/dist/common/mongooseSchemas.js +0 -56
- package/dist/common/preload.js +0 -15
- package/dist/common/report.html.js +0 -31
- package/dist/module/ExampleTab.js +0 -112
- package/dist/module/Features.js +0 -41
- package/dist/module/Init.js +0 -25
- package/dist/module/Reporter.js +0 -107
- package/dist/module/Scheduler.js +0 -1
- package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
- package/dist/module/TaskManBackEnd.js +0 -162
- package/dist/module/TaskManFrontEnd.js +0 -605
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
- package/dist/module/mongooseSchemas.js +0 -50
- package/dist/module/preload.js +0 -15
- package/dist/module/report.html.js +0 -29
- package/dist/prebuild/TaskManBackEnd.mjs +0 -170
- package/dist/prebuild/TaskManFrontEnd.css +0 -12301
- package/dist/prebuild/TaskManFrontEnd.js +0 -81262
- package/dist/types/Features.d.ts +0 -35
- package/dist/types/Reporter.d.ts +0 -1
- package/dist/types/Scheduler.d.ts +0 -0
- package/dist/types/TaskManBackEnd.d.ts +0 -3
- package/dist/types/mongooseSchemas.d.ts +0 -124
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/report.html.d.ts +0 -2
- package/src/ExampleTab.tsx +0 -219
- package/src/Features.ts +0 -64
- package/src/Reporter.ts +0 -126
- package/src/Scheduler.ts +0 -0
- package/src/TaskManBackEnd.ts +0 -226
- package/src/TaskManFrontEnd.tsx +0 -1254
- package/src/mongooseSchemas.ts +0 -105
- package/src/preload.ts +0 -17
- package/src/report.html.ts +0 -29
- package/tests/Rectangle.test.ts +0 -189
- package/trash/TaskMan.Dockerfile +0 -23
- package/trash/TaskMan1.Dockerfile +0 -43
- package/trash/devBot.dockerfile +0 -12
- package/trash/docker-compose-dev.yml +0 -9
- package/trash/docker-compose-prod.yml +0 -18
- package/trash/electronBuild.ts +0 -32
- /package/dist/common/{Node.js → src/Node.js} +0 -0
- /package/dist/common/{PM → src/PM}/index.js +0 -0
- /package/dist/common/{PM → src/PM}/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/common/{Types.js → src/Types.js} +0 -0
- /package/dist/common/{Web.js → src/Web.js} +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/report.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
- /package/dist/common/{lib → src/lib}/classBuilder.js +0 -0
- /package/dist/common/{lib → src/lib}/index.js +0 -0
- /package/dist/common/{lib → src/lib}/types.js +0 -0
- /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
- /package/dist/common/{utils.js → src/utils.js} +0 -0
- /package/dist/common/{web.html.js → src/web.html.js} +0 -0
- /package/dist/module/{Node.js → src/Node.js} +0 -0
- /package/dist/module/{PM → src/PM}/index.js +0 -0
- /package/dist/module/{PM → src/PM}/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/module/{Types.js → src/Types.js} +0 -0
- /package/dist/module/{Web.js → src/Web.js} +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/report.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
- /package/dist/module/{lib → src/lib}/classBuilder.js +0 -0
- /package/dist/module/{lib → src/lib}/index.js +0 -0
- /package/dist/module/{lib → src/lib}/types.js +0 -0
- /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
- /package/dist/module/{utils.js → src/utils.js} +0 -0
- /package/dist/module/{web.html.js → src/web.html.js} +0 -0
- /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
- /package/dist/types/{Node.d.ts → src/Node.d.ts} +0 -0
- /package/dist/types/{PM → src/PM}/node.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/web.d.ts +0 -0
- /package/dist/types/{Puppeteer.d.ts → src/Puppeteer.d.ts} +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/puppeteer.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.d.ts +0 -0
- /package/dist/types/{Web.d.ts → src/Web.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/report.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/basebuilder.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/types.d.ts +0 -0
- /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
- /package/dist/types/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
package/src/mongooseSchemas.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
|
|
3
|
-
export interface IUser {
|
|
4
|
-
email: string;
|
|
5
|
-
channels: string[];
|
|
6
|
-
dmgroups: string[];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const userSchema = new mongoose.Schema<IUser>({
|
|
10
|
-
email: String,
|
|
11
|
-
channels: [{ type: mongoose.Schema.Types.ObjectId, ref: "Channel" }],
|
|
12
|
-
dmgroups: [{ type: mongoose.Schema.Types.ObjectId, ref: "Dmgroup" }],
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
userSchema.virtual("features", {
|
|
16
|
-
ref: "Feature",
|
|
17
|
-
localField: "_id",
|
|
18
|
-
foreignField: "owner",
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export interface IKanban {
|
|
22
|
-
title: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const kanbanSchema = new mongoose.Schema<IKanban>({
|
|
26
|
-
title: String,
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export interface IGantt {
|
|
30
|
-
name: string;
|
|
31
|
-
type: "task" | "milestone" | "project";
|
|
32
|
-
start: Date;
|
|
33
|
-
end: Date;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const ganttSchema = new mongoose.Schema<IGantt>({
|
|
37
|
-
name: String,
|
|
38
|
-
type: String,
|
|
39
|
-
start: Date,
|
|
40
|
-
end: Date,
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export interface IFeature {
|
|
44
|
-
title: string;
|
|
45
|
-
state: string;
|
|
46
|
-
owner: {
|
|
47
|
-
type: mongoose.Schema.Types.ObjectId;
|
|
48
|
-
required: true;
|
|
49
|
-
ref: "User";
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export const featuresSchema = new mongoose.Schema<IFeature>({
|
|
54
|
-
title: String,
|
|
55
|
-
state: String,
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
export const channelsFeature = new mongoose.Schema<IChatChannel>({});
|
|
59
|
-
|
|
60
|
-
export const chatCatMessageSchema = new mongoose.Schema({
|
|
61
|
-
user: {
|
|
62
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
63
|
-
ref: "User",
|
|
64
|
-
required: true,
|
|
65
|
-
},
|
|
66
|
-
room: {
|
|
67
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
68
|
-
ref: "ChatCatRoom",
|
|
69
|
-
required: true,
|
|
70
|
-
maxlength: 100,
|
|
71
|
-
},
|
|
72
|
-
timestamp: {
|
|
73
|
-
type: Date,
|
|
74
|
-
default: Date.now(),
|
|
75
|
-
},
|
|
76
|
-
text: {
|
|
77
|
-
type: String,
|
|
78
|
-
maxlength: 1000,
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
// A channel is a base type, extended by both a huddle and room
|
|
83
|
-
export interface IChatChannel {
|
|
84
|
-
users: string[];
|
|
85
|
-
messages: [{ type: mongoose.Schema.Types.ObjectId; ref: "Message" }];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface IChatCatHuddle {
|
|
89
|
-
users: {
|
|
90
|
-
type: String;
|
|
91
|
-
unique: true;
|
|
92
|
-
required: true;
|
|
93
|
-
}[];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export const HuddleSchema = new mongoose.Schema<IChatCatHuddle>({});
|
|
97
|
-
|
|
98
|
-
// a room is just a channel with a name
|
|
99
|
-
export interface IChatCatRoom {
|
|
100
|
-
name: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export const RoomSchema = new mongoose.Schema<IChatCatRoom>({
|
|
104
|
-
name: { type: String, required: true },
|
|
105
|
-
});
|
package/src/preload.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// import puppeteer from "puppeteer-core";
|
|
2
|
-
|
|
3
|
-
// import { NodeWriter } from "./NodeWriter";
|
|
4
|
-
// import puppeteerConfiger from "./puppeteerConfiger";
|
|
5
|
-
|
|
6
|
-
// (window as any).NodeWriter = NodeWriter;
|
|
7
|
-
|
|
8
|
-
// (window as any).browser = new Promise(async (res, rej) => {
|
|
9
|
-
// const browser = await puppeteerConfiger("2999").then(async (json) => {
|
|
10
|
-
// const b = await puppeteer.connect({
|
|
11
|
-
// browserWSEndpoint: json.webSocketDebuggerUrl,
|
|
12
|
-
// defaultViewport: null,
|
|
13
|
-
// });
|
|
14
|
-
// console.log("connected!", b.isConnected());
|
|
15
|
-
// return res(b);
|
|
16
|
-
// });
|
|
17
|
-
// });
|
package/src/report.html.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export default () => `
|
|
2
|
-
<!DOCTYPE html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<meta name="description" content="Webpage description goes here" />
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<title>kokomoBay - testeranto</title>
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
10
|
-
<meta name="author" content="" />
|
|
11
|
-
|
|
12
|
-
<link rel="stylesheet" href="./Report.css">
|
|
13
|
-
|
|
14
|
-
<script type="importmap">
|
|
15
|
-
{
|
|
16
|
-
"imports": {
|
|
17
|
-
"features.test.js": "./features.test.js",
|
|
18
|
-
"testeranto.json": "./testeranto.json"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./Report.js"></script>
|
|
24
|
-
</head>
|
|
25
|
-
|
|
26
|
-
<body><div id="root">react is loading</div></body>
|
|
27
|
-
|
|
28
|
-
</html>
|
|
29
|
-
`;
|
package/tests/Rectangle.test.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { assert } from "chai";
|
|
3
|
-
|
|
4
|
-
import { ITestSpecification } from "../src/Types";
|
|
5
|
-
import { ITTestShape } from "../src/lib";
|
|
6
|
-
|
|
7
|
-
class Rectangle {
|
|
8
|
-
height: number;
|
|
9
|
-
width: number;
|
|
10
|
-
|
|
11
|
-
constructor(height = 2, width = 2) {
|
|
12
|
-
this.height = height;
|
|
13
|
-
this.width = width;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
getHeight() {
|
|
17
|
-
return this.height;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
getWidth() {
|
|
21
|
-
return this.width;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
setHeight(height: number) {
|
|
25
|
-
this.height = height;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
setWidth(width: number) {
|
|
29
|
-
this.width = width;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
area(): number {
|
|
33
|
-
return this.width * this.height;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
circumference(): number {
|
|
37
|
-
return this.width * 2 + this.height * 2;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//////////////////////////////////////////////////////////////////////////////////
|
|
42
|
-
|
|
43
|
-
export type IRectangleTestShape = {
|
|
44
|
-
suites: {
|
|
45
|
-
Default: string;
|
|
46
|
-
},
|
|
47
|
-
givens: {
|
|
48
|
-
Default;
|
|
49
|
-
WidthOfOneAndHeightOfOne;
|
|
50
|
-
WidthAndHeightOf: [number, number];
|
|
51
|
-
},
|
|
52
|
-
whens: {
|
|
53
|
-
HeightIsPubliclySetTo: [number];
|
|
54
|
-
WidthIsPubliclySetTo: [number];
|
|
55
|
-
setWidth: [number];
|
|
56
|
-
setHeight: [number];
|
|
57
|
-
},
|
|
58
|
-
thens: {
|
|
59
|
-
AreaPlusCircumference: [number];
|
|
60
|
-
circumference: [number];
|
|
61
|
-
getWidth: [number];
|
|
62
|
-
getHeight: [number];
|
|
63
|
-
area: [number];
|
|
64
|
-
prototype: [string];
|
|
65
|
-
},
|
|
66
|
-
checks: {
|
|
67
|
-
Default;
|
|
68
|
-
WidthOfOneAndHeightOfOne;
|
|
69
|
-
WidthAndHeightOf: [number, number];
|
|
70
|
-
}
|
|
71
|
-
} & ITTestShape;
|
|
72
|
-
|
|
73
|
-
export const RectangleTesterantoBaseInterface = {};
|
|
74
|
-
|
|
75
|
-
export type WhenShape = any;
|
|
76
|
-
export type ThenShape = any;
|
|
77
|
-
export type GivenShape = any;
|
|
78
|
-
export type Input = Rectangle;
|
|
79
|
-
export type IRuntime = { runtime: "just node", entrypoint: "./Rect" };
|
|
80
|
-
export const RectangleTesterantoBasePrototype = Rectangle.prototype;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export const RectangleTesterantoBaseTestSpecification: ITestSpecification<
|
|
84
|
-
IRectangleTestShape,
|
|
85
|
-
Input,
|
|
86
|
-
Input,
|
|
87
|
-
WhenShape,
|
|
88
|
-
ThenShape,
|
|
89
|
-
GivenShape
|
|
90
|
-
> =
|
|
91
|
-
(Suite, Given, When, Then, Check) => {
|
|
92
|
-
return [
|
|
93
|
-
Suite.Default(
|
|
94
|
-
"Testing the Rectangle class",
|
|
95
|
-
{
|
|
96
|
-
"test0": Given.Default(
|
|
97
|
-
[`hello`],
|
|
98
|
-
[When.setWidth(4), When.setHeight(9)],
|
|
99
|
-
[Then.getWidth(4), Then.getHeight(9)]
|
|
100
|
-
),
|
|
101
|
-
"test1": Given.Default(
|
|
102
|
-
[`hello`],
|
|
103
|
-
[When.setWidth(4), When.setHeight(5)],
|
|
104
|
-
[
|
|
105
|
-
Then.getWidth(4),
|
|
106
|
-
Then.getHeight(5),
|
|
107
|
-
Then.area(20),
|
|
108
|
-
Then.AreaPlusCircumference(38),
|
|
109
|
-
]
|
|
110
|
-
),
|
|
111
|
-
"test2": Given.Default(
|
|
112
|
-
[`hello`],
|
|
113
|
-
[When.setHeight(4), When.setWidth(3)],
|
|
114
|
-
[Then.area(12)]
|
|
115
|
-
),
|
|
116
|
-
"test3": Given.Default(
|
|
117
|
-
[`hello`],
|
|
118
|
-
[When.setHeight(5), When.setWidth(5)],
|
|
119
|
-
[Then.area(25)]
|
|
120
|
-
)
|
|
121
|
-
},
|
|
122
|
-
[]
|
|
123
|
-
// Check.Default(
|
|
124
|
-
// "imperative style",
|
|
125
|
-
// async ({ PostToAdd }, { TheNumberIs }) => {
|
|
126
|
-
// const a = await PostToAdd(2);
|
|
127
|
-
// const b = parseInt(await PostToAdd(3));
|
|
128
|
-
// await TheNumberIs(b);
|
|
129
|
-
// await PostToAdd(2);
|
|
130
|
-
// await TheNumberIs(7);
|
|
131
|
-
// await PostToAdd(3);
|
|
132
|
-
// await TheNumberIs(10);
|
|
133
|
-
// assert.equal(await PostToAdd(-15), -5);
|
|
134
|
-
// await TheNumberIs(-5);
|
|
135
|
-
// }
|
|
136
|
-
// ),
|
|
137
|
-
// ]
|
|
138
|
-
),
|
|
139
|
-
];
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
export const RectangleTesterantoBaseTestImplementation = {
|
|
143
|
-
Suites: {
|
|
144
|
-
Default: "a default suite",
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
Givens: {
|
|
148
|
-
Default: () => new Rectangle(),
|
|
149
|
-
WidthOfOneAndHeightOfOne: () => new Rectangle(1, 1),
|
|
150
|
-
WidthAndHeightOf: (width, height) => new Rectangle(width, height),
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
Whens: {
|
|
154
|
-
HeightIsPubliclySetTo: (height) => (rectangle) =>
|
|
155
|
-
(rectangle.height = height),
|
|
156
|
-
WidthIsPubliclySetTo: (width) => (rectangle) => (rectangle.width = width),
|
|
157
|
-
setWidth: (width) => (rectangle) => rectangle.setWidth(width),
|
|
158
|
-
setHeight: (height) => (rectangle) => {
|
|
159
|
-
console.log("SET HEIGHT", rectangle, height);
|
|
160
|
-
rectangle.setHeight(height);
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
Thens: {
|
|
165
|
-
AreaPlusCircumference: (combined) => (rectangle) => {
|
|
166
|
-
assert.equal(rectangle.area() + rectangle.circumference(), combined);
|
|
167
|
-
},
|
|
168
|
-
getWidth: (width) => (rectangle) => assert.equal(rectangle.width, width),
|
|
169
|
-
|
|
170
|
-
getHeight: (height) => (rectangle) =>
|
|
171
|
-
assert.equal(rectangle.height, height),
|
|
172
|
-
|
|
173
|
-
area: (area) => (rectangle) => assert.equal(rectangle.area(), area),
|
|
174
|
-
|
|
175
|
-
prototype: (name) => (rectangle) => assert.equal(1, 1),
|
|
176
|
-
// throw new Error("Function not implemented.")
|
|
177
|
-
|
|
178
|
-
circumference: (circumference) => (rectangle) =>
|
|
179
|
-
assert.equal(rectangle.circumference(), circumference),
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
Checks: {
|
|
183
|
-
/* @ts-ignore:next-line */
|
|
184
|
-
AnEmptyState: () => {
|
|
185
|
-
return {};
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
|
package/trash/TaskMan.Dockerfile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
FROM node:latest
|
|
2
|
-
RUN mkdir -p /usr/src/app
|
|
3
|
-
WORKDIR /usr/src/app
|
|
4
|
-
COPY package.json /usr/src/app
|
|
5
|
-
RUN yarn install
|
|
6
|
-
COPY ./src/ /usr/src/app/src
|
|
7
|
-
COPY prebuild.sh /usr/src/app
|
|
8
|
-
COPY postBuild.sh /usr/src/app
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
RUN yarn build
|
|
12
|
-
|
|
13
|
-
RUN cp ./dist/prebuild/TaskManBackEnd.mjs /usr/src/app/TaskManBackEnd.mjs
|
|
14
|
-
RUN cp ./dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.mjs
|
|
15
|
-
RUN cp ./dist/prebuild/TaskManFrontEnd.css /usr/src/app/TaskManFrontEnd.css
|
|
16
|
-
|
|
17
|
-
# RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
|
|
18
|
-
|
|
19
|
-
EXPOSE 3000
|
|
20
|
-
EXPOSE 27017
|
|
21
|
-
ENV MONGO_HOST=host.docker.internal
|
|
22
|
-
# CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
23
|
-
CMD ["node", "./TaskManBackEnd.mjs"]
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
FROM node:18.18.0
|
|
2
|
-
|
|
3
|
-
# Install build dependencies
|
|
4
|
-
RUN apt-get update && \
|
|
5
|
-
apt-get install -y --no-install-recommends \
|
|
6
|
-
python3 \
|
|
7
|
-
make \
|
|
8
|
-
g++ && \
|
|
9
|
-
rm -rf /var/lib/apt/lists/*
|
|
10
|
-
|
|
11
|
-
RUN yarn global add node-gyp
|
|
12
|
-
|
|
13
|
-
RUN mkdir -p /usr/src/app
|
|
14
|
-
RUN mkdir -p /usr/src/app/docs
|
|
15
|
-
WORKDIR /usr/src/app
|
|
16
|
-
COPY package.json /usr/src/app
|
|
17
|
-
RUN yarn install
|
|
18
|
-
COPY ./src/ /usr/src/app/src
|
|
19
|
-
COPY ./subPackages/ /usr/src/app/subPackages
|
|
20
|
-
COPY ./testeranto.mts /usr/src/app/testeranto.mts
|
|
21
|
-
# COPY ./features.test.mts /usr/src/app/features.test.mts
|
|
22
|
-
COPY ./tsconfig.json /usr/src/app/tsconfig.json
|
|
23
|
-
|
|
24
|
-
RUN yarn testeranto-esbuild
|
|
25
|
-
# COPY ./docs/ /usr/src/app/docs
|
|
26
|
-
# # COPY ./testeranto.json /usr/src/app/testeranto.json
|
|
27
|
-
# # COPY prebuild.sh /usr/src/app
|
|
28
|
-
# # COPY postBuild.sh /usr/src/app
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# # RUN yarn build
|
|
32
|
-
|
|
33
|
-
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs /usr/src/app/TaskManBackEnd.mjs
|
|
34
|
-
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.js
|
|
35
|
-
RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css /usr/src/app/TaskManFrontEnd.css
|
|
36
|
-
|
|
37
|
-
# # RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
|
|
38
|
-
|
|
39
|
-
EXPOSE 3000
|
|
40
|
-
EXPOSE 27017
|
|
41
|
-
ENV MONGO_HOST=host.docker.internal
|
|
42
|
-
# # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
43
|
-
CMD ["node", "./TaskManBackEnd.mjs"]
|
package/trash/devBot.dockerfile
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
FROM node:latest
|
|
2
|
-
RUN mkdir -p /usr/src/app
|
|
3
|
-
WORKDIR /usr/src/app
|
|
4
|
-
COPY package.json /usr/src/app
|
|
5
|
-
RUN yarn install
|
|
6
|
-
COPY ./ /usr/src/app
|
|
7
|
-
|
|
8
|
-
# RUN yarn testeranto-esbuild
|
|
9
|
-
|
|
10
|
-
# EXPOSE 3000
|
|
11
|
-
# CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
12
|
-
CMD ['yarn', 'testeranto-taskman']
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
version: "3"
|
|
2
|
-
services:
|
|
3
|
-
app:
|
|
4
|
-
container_name: app
|
|
5
|
-
image: Dockerfile
|
|
6
|
-
restart: always
|
|
7
|
-
build: .
|
|
8
|
-
ports:
|
|
9
|
-
- "3000:3000"
|
|
10
|
-
links:
|
|
11
|
-
- mongo
|
|
12
|
-
mongo:
|
|
13
|
-
container_name: mongo
|
|
14
|
-
image: mongo
|
|
15
|
-
volumes:
|
|
16
|
-
- ./data:/data/db
|
|
17
|
-
ports:
|
|
18
|
-
- '27017:27017'
|
package/trash/electronBuild.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as esbuild from 'esbuild'
|
|
2
|
-
|
|
3
|
-
let result = await esbuild.build({
|
|
4
|
-
entryPoints: ['src/electron.ts'],
|
|
5
|
-
bundle: true,
|
|
6
|
-
outfile: 'dist/prebuild/electron.js',
|
|
7
|
-
external: [
|
|
8
|
-
"assert",
|
|
9
|
-
"child_process",
|
|
10
|
-
"constants",
|
|
11
|
-
"crypto",
|
|
12
|
-
"fs",
|
|
13
|
-
"http",
|
|
14
|
-
"https",
|
|
15
|
-
"net",
|
|
16
|
-
"os",
|
|
17
|
-
"path",
|
|
18
|
-
"readline",
|
|
19
|
-
"stream",
|
|
20
|
-
"tls",
|
|
21
|
-
"util",
|
|
22
|
-
"zlib",
|
|
23
|
-
"node:module",
|
|
24
|
-
"node:url",
|
|
25
|
-
"node:path",
|
|
26
|
-
],
|
|
27
|
-
banner: {
|
|
28
|
-
js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`
|
|
29
|
-
},
|
|
30
|
-
// inject: [`./src/cjs-shim.js`],
|
|
31
|
-
})
|
|
32
|
-
// yarn esbuild src / electron.ts--outfile = dist / prebuild / electron.js--bundle--external: path--external: http--external: fs--external: net--external: os--external: util--external: https--external: stream--external: tls--external: readline--external: child_process--external: zlib--external: assert--external: crypto--external: constants
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js
RENAMED
|
File without changes
|
/package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js
RENAMED
|
File without changes
|
/package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js
RENAMED
|
File without changes
|
/package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js
RENAMED
|
File without changes
|
/package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|