testeranto 0.81.3 → 0.84.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/dist/common/src/Node.js +4 -2
- package/dist/common/src/PM/main.js +188 -61
- package/dist/common/src/PM/node.js +32 -7
- package/dist/common/src/PM/web.js +28 -54
- package/dist/common/src/Project.js +0 -3
- package/dist/common/src/Puppeteer.js +9 -51
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +11 -11
- package/dist/common/src/Web.js +7 -1
- package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +62 -64
- package/dist/common/src/esbuildConfigs/node.js +10 -3
- package/dist/common/src/esbuildConfigs/web.js +6 -2
- package/dist/common/src/lib/abstractBase.js +348 -337
- package/dist/common/src/lib/basebuilder.js +9 -4
- package/dist/common/src/lib/core.js +1 -1
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Node.js +3 -3
- package/dist/module/src/PM/main.js +188 -61
- package/dist/module/src/PM/node.js +32 -7
- package/dist/module/src/PM/web.js +28 -51
- package/dist/module/src/Project.js +0 -3
- package/dist/module/src/Puppeteer.js +9 -51
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +10 -10
- package/dist/module/src/Web.js +6 -2
- package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +62 -64
- package/dist/module/src/esbuildConfigs/node.js +10 -3
- package/dist/module/src/esbuildConfigs/web.js +6 -2
- package/dist/module/src/lib/abstractBase.js +348 -337
- package/dist/module/src/lib/basebuilder.js +9 -4
- package/dist/module/src/lib/core.js +1 -1
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Puppeteer.mjs +82033 -0
- package/dist/types/src/Node.d.ts +5 -1
- package/dist/types/src/PM/index.d.ts +10 -4
- package/dist/types/src/PM/main.d.ts +21 -9
- package/dist/types/src/PM/node.d.ts +11 -3
- package/dist/types/src/PM/web.d.ts +11 -2
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +1 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +1 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +1 -0
- package/dist/types/src/Types.d.ts +2 -2
- package/dist/types/src/Web.d.ts +5 -1
- package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +4 -2
- package/dist/types/src/lib/abstractBase.d.ts +5 -4
- package/dist/types/src/lib/core.d.ts +1 -1
- package/dist/types/src/lib/index.d.ts +1 -0
- package/dist/types/src/lib/types.d.ts +7 -5
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +18 -45
- package/pupBuild.js +18 -0
- package/src/Node.ts +3 -5
- package/src/PM/index.ts +12 -3
- package/src/PM/main.ts +306 -140
- package/src/PM/node.ts +40 -7
- package/src/PM/web.ts +108 -58
- package/src/Project.ts +0 -8
- package/src/Puppeteer.ts +11 -57
- package/src/SubPackages/react-dom/jsx/web.ts +15 -10
- package/src/Types.ts +5 -2
- package/src/Web.ts +6 -2
- package/src/esbuildConfigs/featuresPlugin.ts +43 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +97 -90
- package/src/esbuildConfigs/node.ts +18 -3
- package/src/esbuildConfigs/web.ts +14 -2
- package/src/lib/abstractBase.ts +388 -366
- package/src/lib/basebuilder.ts +9 -9
- package/src/lib/core.ts +4 -2
- package/src/lib/index.ts +1 -0
- package/src/lib/types.ts +14 -6
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { BuildOptions } from "esbuild";
|
|
2
|
+
// import pkg from "esbuild-plugin-markdown";
|
|
3
|
+
// const { markdownPlugin } = pkg;
|
|
2
4
|
|
|
3
5
|
import { IBaseConfig } from "../lib/types";
|
|
4
6
|
|
|
5
7
|
import baseEsBuildConfig from "./index.js";
|
|
6
8
|
import inputFilesPlugin from "./inputFilesPlugin.js";
|
|
9
|
+
import featuresPlugin from "./featuresPlugin";
|
|
7
10
|
|
|
8
11
|
export default (
|
|
9
12
|
config: IBaseConfig,
|
|
10
13
|
entryPoints: Set<string> | string[]
|
|
11
14
|
): BuildOptions => {
|
|
15
|
+
const { inputFilesPluginFactory, register } = inputFilesPlugin(
|
|
16
|
+
"node",
|
|
17
|
+
entryPoints
|
|
18
|
+
);
|
|
19
|
+
// const inputFilesPluginFactory = inputFilesPlugin("node", entryPoints);
|
|
20
|
+
// const register = (x) => x;
|
|
21
|
+
|
|
12
22
|
return {
|
|
13
23
|
...baseEsBuildConfig(config),
|
|
14
24
|
|
|
@@ -34,7 +44,7 @@ export default (
|
|
|
34
44
|
external: [
|
|
35
45
|
// "testeranto.json",
|
|
36
46
|
// "features.test.js",
|
|
37
|
-
|
|
47
|
+
"react",
|
|
38
48
|
// "events",
|
|
39
49
|
// "ganache"
|
|
40
50
|
...config.externals,
|
|
@@ -42,8 +52,13 @@ export default (
|
|
|
42
52
|
|
|
43
53
|
entryPoints: [...entryPoints],
|
|
44
54
|
plugins: [
|
|
45
|
-
|
|
46
|
-
|
|
55
|
+
featuresPlugin,
|
|
56
|
+
// markdownPlugin({}),
|
|
57
|
+
...(config.nodePlugins.map((p) => p(register, entryPoints)) || []),
|
|
58
|
+
|
|
59
|
+
inputFilesPluginFactory,
|
|
60
|
+
// inputFilesPlugin("node", entryPoints),
|
|
61
|
+
|
|
47
62
|
{
|
|
48
63
|
name: "rebuild-notify",
|
|
49
64
|
setup(build) {
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { BuildOptions } from "esbuild";
|
|
2
2
|
import path from "path";
|
|
3
3
|
|
|
4
|
+
// import pkg from "esbuild-plugin-markdown";
|
|
5
|
+
// const { markdownPlugin } = pkg;
|
|
6
|
+
|
|
4
7
|
import { IBaseConfig } from "../lib/types.js";
|
|
5
8
|
|
|
6
9
|
import baseEsBuildConfig from "./index.js";
|
|
7
10
|
import inputFilesPlugin from "./inputFilesPlugin.js";
|
|
11
|
+
import featuresPlugin from "./featuresPlugin.js";
|
|
8
12
|
|
|
9
13
|
export default (
|
|
10
14
|
config: IBaseConfig,
|
|
11
15
|
entryPoints: Set<string> | string[]
|
|
12
16
|
): BuildOptions => {
|
|
17
|
+
const { inputFilesPluginFactory, register } = inputFilesPlugin(
|
|
18
|
+
"web",
|
|
19
|
+
entryPoints
|
|
20
|
+
);
|
|
21
|
+
|
|
13
22
|
return {
|
|
14
23
|
...baseEsBuildConfig(config),
|
|
15
24
|
|
|
@@ -59,8 +68,11 @@ export default (
|
|
|
59
68
|
entryPoints: [...entryPoints],
|
|
60
69
|
|
|
61
70
|
plugins: [
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
featuresPlugin,
|
|
72
|
+
|
|
73
|
+
// markdownPlugin({}),
|
|
74
|
+
...(config.nodePlugins.map((p) => p(register, entryPoints)) || []),
|
|
75
|
+
inputFilesPluginFactory,
|
|
64
76
|
{
|
|
65
77
|
name: "rebuild-notify",
|
|
66
78
|
setup(build) {
|