testeranto 0.79.6 → 0.79.7
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/Features.js +84 -0
- package/dist/common/Node.js +23 -0
- package/dist/common/PM/index.js +7 -0
- package/dist/common/PM/main.js +641 -0
- package/dist/common/PM/node.js +88 -0
- package/dist/common/PM/web.js +132 -0
- package/dist/common/Project.js +186 -0
- package/dist/common/Puppeteer.js +104 -0
- package/dist/common/Reporter.js +112 -0
- package/dist/common/Scheduler.js +1 -0
- package/dist/common/SubPackages/puppeteer.js +21 -0
- package/dist/common/SubPackages/react/component/node.js +19 -0
- package/dist/common/SubPackages/react/component/web.js +19 -0
- package/dist/common/SubPackages/react/jsx/index.js +25 -0
- package/dist/common/SubPackages/react/jsx/node.js +10 -0
- package/dist/common/SubPackages/react/jsx/web.js +10 -0
- package/dist/common/SubPackages/react-dom/component/node.js +101 -0
- package/dist/common/SubPackages/react-dom/component/web.js +93 -0
- package/dist/common/SubPackages/react-dom/jsx/index.js +2 -0
- package/dist/common/SubPackages/react-dom/jsx/node.js +39 -0
- package/dist/common/SubPackages/react-dom/jsx/web.js +118 -0
- package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +44 -0
- package/dist/common/SubPackages/react-test-renderer/component/index.js +2 -0
- package/dist/common/SubPackages/react-test-renderer/component/interface.js +68 -0
- package/dist/common/SubPackages/react-test-renderer/component/node.js +8 -0
- package/dist/common/SubPackages/react-test-renderer/component/web.js +8 -0
- package/dist/common/SubPackages/react-test-renderer/fc/node.js +50 -0
- package/dist/common/SubPackages/react-test-renderer/fc/web.js +50 -0
- package/dist/common/SubPackages/react-test-renderer/jsx/index.js +48 -0
- package/dist/common/SubPackages/react-test-renderer/jsx/node.js +10 -0
- package/dist/common/SubPackages/react-test-renderer/jsx/web.js +10 -0
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +42 -0
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +10 -0
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +10 -0
- package/dist/common/TaskManBackEnd.js +174 -0
- package/dist/common/Types.js +2 -0
- package/dist/common/Web.js +39 -0
- package/dist/common/esbuildConfigs/features.js +14 -0
- package/dist/common/esbuildConfigs/index.js +21 -0
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +49 -0
- package/dist/common/esbuildConfigs/node.js +39 -0
- package/dist/common/esbuildConfigs/report.js +13 -0
- package/dist/common/esbuildConfigs/tests.js +13 -0
- package/dist/common/esbuildConfigs/web.js +57 -0
- package/dist/common/lib/abstractBase.js +553 -0
- package/dist/common/lib/basebuilder.js +79 -0
- package/dist/common/lib/classBuilder.js +42 -0
- package/dist/common/lib/core.js +75 -0
- package/dist/common/lib/index.js +22 -0
- package/dist/common/lib/types.js +2 -0
- package/dist/common/mongooseSchemas.js +56 -0
- package/dist/common/package.json +3 -0
- package/dist/common/preload.js +15 -0
- package/dist/common/puppeteerConfiger.js +24 -0
- package/dist/common/report.html.js +31 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -0
- package/dist/common/utils.js +16 -0
- package/dist/common/web.html.js +22 -0
- package/dist/module/ExampleTab.js +112 -0
- package/dist/module/Features.js +73 -0
- package/dist/module/Node.js +18 -0
- package/dist/module/PM/index.js +3 -0
- package/dist/module/PM/main.js +611 -0
- package/dist/module/PM/node.js +81 -0
- package/dist/module/PM/web.js +125 -0
- package/dist/module/Project.js +179 -0
- package/dist/module/Puppeteer.js +99 -0
- package/dist/module/Reporter.js +107 -0
- package/dist/module/Scheduler.js +1 -0
- package/dist/module/SubPackages/puppeteer.js +16 -0
- package/dist/module/SubPackages/react/component/node.js +14 -0
- package/dist/module/SubPackages/react/component/web.js +14 -0
- package/dist/module/SubPackages/react/jsx/index.js +19 -0
- package/dist/module/SubPackages/react/jsx/node.js +5 -0
- package/dist/module/SubPackages/react/jsx/web.js +5 -0
- package/dist/module/SubPackages/react-dom/component/node.js +93 -0
- package/dist/module/SubPackages/react-dom/component/web.js +88 -0
- package/dist/module/SubPackages/react-dom/jsx/index.js +1 -0
- package/dist/module/SubPackages/react-dom/jsx/node.js +31 -0
- package/dist/module/SubPackages/react-dom/jsx/web.js +90 -0
- package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +16 -0
- package/dist/module/SubPackages/react-test-renderer/component/index.js +1 -0
- package/dist/module/SubPackages/react-test-renderer/component/interface.js +39 -0
- package/dist/module/SubPackages/react-test-renderer/component/node.js +3 -0
- package/dist/module/SubPackages/react-test-renderer/component/web.js +3 -0
- package/dist/module/SubPackages/react-test-renderer/fc/node.js +22 -0
- package/dist/module/SubPackages/react-test-renderer/fc/web.js +22 -0
- package/dist/module/SubPackages/react-test-renderer/jsx/index.js +19 -0
- package/dist/module/SubPackages/react-test-renderer/jsx/node.js +5 -0
- package/dist/module/SubPackages/react-test-renderer/jsx/web.js +5 -0
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +16 -0
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +5 -0
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +5 -0
- package/dist/module/TaskManBackEnd.js +169 -0
- package/dist/module/TaskManFrontEnd.js +600 -0
- package/dist/module/Types.js +1 -0
- package/dist/module/Web.js +34 -0
- package/dist/module/esbuildConfigs/features.js +12 -0
- package/dist/module/esbuildConfigs/index.js +19 -0
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +44 -0
- package/dist/module/esbuildConfigs/node.js +34 -0
- package/dist/module/esbuildConfigs/report.js +11 -0
- package/dist/module/esbuildConfigs/tests.js +11 -0
- package/dist/module/esbuildConfigs/web.js +52 -0
- package/dist/module/lib/abstractBase.js +545 -0
- package/dist/module/lib/basebuilder.js +75 -0
- package/dist/module/lib/classBuilder.js +38 -0
- package/dist/module/lib/core.js +72 -0
- package/dist/module/lib/index.js +18 -0
- package/dist/module/lib/types.js +1 -0
- package/dist/module/mongooseSchemas.js +50 -0
- package/dist/module/package.json +3 -0
- package/dist/module/preload.js +15 -0
- package/dist/module/puppeteerConfiger.js +19 -0
- package/dist/module/report.html.js +29 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -0
- package/dist/module/utils.js +9 -0
- package/dist/module/web.html.js +20 -0
- package/dist/prebuild/Report.css +11358 -0
- package/dist/prebuild/Report.js +37666 -0
- package/dist/prebuild/TaskManBackEnd.mjs +180 -0
- package/dist/prebuild/TaskManFrontEnd.css +12301 -0
- package/dist/prebuild/TaskManFrontEnd.js +81737 -0
- package/dist/types/Features.d.ts +68 -0
- package/dist/types/Node.d.ts +6 -0
- package/dist/types/PM/index.d.ts +20 -0
- package/dist/types/PM/main.d.ts +31 -0
- package/dist/types/PM/node.d.ts +27 -0
- package/dist/types/PM/web.d.ts +25 -0
- package/dist/types/Project.d.ts +7 -0
- package/dist/types/Puppeteer.d.ts +1 -0
- package/dist/types/Reporter.d.ts +1 -0
- package/dist/types/Scheduler.d.ts +0 -0
- package/dist/types/SubPackages/puppeteer.d.ts +6 -0
- package/dist/types/SubPackages/react/component/node.d.ts +7 -0
- package/dist/types/SubPackages/react/component/web.d.ts +7 -0
- package/dist/types/SubPackages/react/jsx/index.d.ts +12 -0
- package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/SubPackages/react-dom/component/node.d.ts +12 -0
- package/dist/types/SubPackages/react-dom/component/web.d.ts +11 -0
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +6 -0
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +6 -0
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +13 -0
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +3 -0
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +16 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +15 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +4 -0
- package/dist/types/TaskManBackEnd.d.ts +1 -0
- package/dist/types/Types.d.ts +50 -0
- package/dist/types/Web.d.ts +6 -0
- package/dist/types/esbuildConfigs/features.d.ts +4 -0
- package/dist/types/esbuildConfigs/index.d.ts +4 -0
- package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +5 -0
- package/dist/types/esbuildConfigs/node.d.ts +4 -0
- package/dist/types/esbuildConfigs/report.d.ts +4 -0
- package/dist/types/esbuildConfigs/tests.d.ts +4 -0
- package/dist/types/esbuildConfigs/web.d.ts +4 -0
- package/dist/types/lib/abstractBase.d.ts +104 -0
- package/dist/types/lib/basebuilder.d.ts +27 -0
- package/dist/types/lib/classBuilder.d.ts +7 -0
- package/dist/types/lib/core.d.ts +8 -0
- package/dist/types/lib/index.d.ts +59 -0
- package/dist/types/lib/types.d.ts +64 -0
- package/dist/types/mongooseSchemas.d.ts +124 -0
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/puppeteerConfiger.d.ts +4 -0
- package/dist/types/report.html.d.ts +2 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -0
- package/dist/types/utils.d.ts +2 -0
- package/dist/types/web.html.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default (config) => {
|
|
2
|
+
return {
|
|
3
|
+
// packages: "external",
|
|
4
|
+
target: "esnext",
|
|
5
|
+
format: "esm",
|
|
6
|
+
splitting: true,
|
|
7
|
+
outExtension: { ".js": ".mjs" },
|
|
8
|
+
outbase: config.outbase,
|
|
9
|
+
jsx: "transform",
|
|
10
|
+
bundle: true,
|
|
11
|
+
minify: config.minify === true,
|
|
12
|
+
write: true,
|
|
13
|
+
loader: {
|
|
14
|
+
".js": "jsx",
|
|
15
|
+
".png": "binary",
|
|
16
|
+
".jpg": "binary",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
export default (platform, entryPoints) => {
|
|
4
|
+
return {
|
|
5
|
+
name: "metafileWriter",
|
|
6
|
+
setup(build) {
|
|
7
|
+
build.onEnd((result) => {
|
|
8
|
+
if (result.errors.length === 0) {
|
|
9
|
+
entryPoints.forEach((entryPoint) => {
|
|
10
|
+
const filePath = path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `inputFiles.json`);
|
|
11
|
+
const dirName = path.dirname(filePath);
|
|
12
|
+
if (!fs.existsSync(dirName)) {
|
|
13
|
+
fs.mkdirSync(dirName, { recursive: true });
|
|
14
|
+
}
|
|
15
|
+
fs.writeFileSync(filePath, JSON.stringify(Object.keys(Object.keys(result.metafile.outputs)
|
|
16
|
+
.filter((s) => {
|
|
17
|
+
if (!result.metafile.outputs[s].entryPoint) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return (path.resolve(result.metafile.outputs[s].entryPoint) ===
|
|
21
|
+
path.resolve(entryPoint));
|
|
22
|
+
})
|
|
23
|
+
.reduce((mm, el) => {
|
|
24
|
+
mm.push(result.metafile.outputs[el].inputs);
|
|
25
|
+
return mm;
|
|
26
|
+
}, [])[0])
|
|
27
|
+
.filter((f) => {
|
|
28
|
+
const regex = /^src\/.*/g;
|
|
29
|
+
const matches = f.match(regex);
|
|
30
|
+
const passes = (matches === null || matches === void 0 ? void 0 : matches.length) === 1;
|
|
31
|
+
return passes;
|
|
32
|
+
})
|
|
33
|
+
.filter((f) => {
|
|
34
|
+
const regex = /.*\.test\..*/g;
|
|
35
|
+
const matches = f.match(regex);
|
|
36
|
+
const passes = (matches === null || matches === void 0 ? void 0 : matches.length) === 1;
|
|
37
|
+
return !passes;
|
|
38
|
+
})));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import baseEsBuildConfig from "./index.js";
|
|
2
|
+
import inputFilesPlugin from "./inputFilesPlugin";
|
|
3
|
+
export default (config, entryPoints) => {
|
|
4
|
+
return Object.assign(Object.assign({}, baseEsBuildConfig(config)), { splitting: true, outdir: config.outdir + "/node", inject: [`./node_modules/testeranto/dist/cjs-shim.js`], metafile: true, supported: {
|
|
5
|
+
"dynamic-import": true,
|
|
6
|
+
}, define: {
|
|
7
|
+
"process.env.FLUENTFFMPEG_COV": "0",
|
|
8
|
+
}, absWorkingDir: process.cwd(), banner: {
|
|
9
|
+
js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`,
|
|
10
|
+
}, platform: "node", external: [
|
|
11
|
+
// "testeranto.json",
|
|
12
|
+
// "features.test.js",
|
|
13
|
+
// "react",
|
|
14
|
+
// "events",
|
|
15
|
+
// "ganache"
|
|
16
|
+
...config.externals,
|
|
17
|
+
], entryPoints: [...entryPoints], plugins: [
|
|
18
|
+
...(config.nodePlugins || []),
|
|
19
|
+
inputFilesPlugin("node", entryPoints),
|
|
20
|
+
{
|
|
21
|
+
name: "rebuild-notify",
|
|
22
|
+
setup(build) {
|
|
23
|
+
build.onEnd((result) => {
|
|
24
|
+
console.log(`node build ended with ${result.errors.length} errors`);
|
|
25
|
+
if (result.errors.length > 0) {
|
|
26
|
+
console.log(result);
|
|
27
|
+
}
|
|
28
|
+
// console.log(result);
|
|
29
|
+
// result.errors.length !== 0 && process.exit(-1);
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default (config) => {
|
|
2
|
+
return {
|
|
3
|
+
bundle: true,
|
|
4
|
+
entryPoints: ["./node_modules/testeranto/dist/module/report.js"],
|
|
5
|
+
minify: config.minify === true,
|
|
6
|
+
outbase: config.outbase,
|
|
7
|
+
write: true,
|
|
8
|
+
outfile: `${config.outdir}/report.js`,
|
|
9
|
+
external: ["tests.json", "features.test.js"],
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import baseEsBuildConfig from "./index.js";
|
|
3
|
+
import inputFilesPlugin from "./inputFilesPlugin.js";
|
|
4
|
+
export default (config, entryPoints) => {
|
|
5
|
+
return Object.assign(Object.assign({}, baseEsBuildConfig(config)), {
|
|
6
|
+
// inject: ["./node_modules/testeranto/dist/cjs-shim.js"],
|
|
7
|
+
// banner: {
|
|
8
|
+
// js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`,
|
|
9
|
+
// },
|
|
10
|
+
// splitting: true,
|
|
11
|
+
outdir: config.outdir + "/web", alias: {
|
|
12
|
+
react: path.resolve("./node_modules/react"),
|
|
13
|
+
}, metafile: true, external: [
|
|
14
|
+
"testeranto.json",
|
|
15
|
+
"features.test.ts",
|
|
16
|
+
// "url",
|
|
17
|
+
"react",
|
|
18
|
+
"path",
|
|
19
|
+
"fs",
|
|
20
|
+
"stream",
|
|
21
|
+
"http",
|
|
22
|
+
"constants",
|
|
23
|
+
"net",
|
|
24
|
+
"assert",
|
|
25
|
+
"tls",
|
|
26
|
+
"os",
|
|
27
|
+
"child_process",
|
|
28
|
+
"readline",
|
|
29
|
+
"zlib",
|
|
30
|
+
"crypto",
|
|
31
|
+
"https",
|
|
32
|
+
"util",
|
|
33
|
+
"process",
|
|
34
|
+
"dns",
|
|
35
|
+
], platform: "browser", entryPoints: [...entryPoints], plugins: [
|
|
36
|
+
...(config.webPlugins || []),
|
|
37
|
+
inputFilesPlugin("node", entryPoints),
|
|
38
|
+
{
|
|
39
|
+
name: "rebuild-notify",
|
|
40
|
+
setup(build) {
|
|
41
|
+
build.onEnd((result) => {
|
|
42
|
+
console.log(`web build ended with ${result.errors.length} errors`);
|
|
43
|
+
if (result.errors.length > 0) {
|
|
44
|
+
console.log(result);
|
|
45
|
+
}
|
|
46
|
+
// console.log(result);
|
|
47
|
+
// result.errors.length !== 0 && process.exit(-1);
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
] });
|
|
52
|
+
};
|