Skip to content

Commit c79f5ff

Browse files
Refactor code structure for improved readability and maintainability
Signed-off-by: Nikola Hristov <Nikola@PlayForm.Cloud>
1 parent be9caf8 commit c79f5ff

531 files changed

Lines changed: 1 addition & 33730 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Configuration/ESBuild/Config/BaseConfig.js

Lines changed: 0 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Config/CompileConfig.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Config/TargetConfig.js

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Constant/BoundConstant.js

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Constant/EnvironmentConstant.js

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Constant/PathConstant.js

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Target.js

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/Wind.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configuration/ESBuild/index.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/ESBuild.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,33 @@
11
export const Clean = process.env["Clean"] === "true";
2-
32
export const Meta = process.env["Meta"] === "true";
4-
53
export const On = process.env["NODE_ENV"] === "development" ||
64
process.env["TAURI_ENV_DEBUG"] === "true";
7-
85
/**
96
* @module ESBuild
107
*
118
*/
129
export default {
13-
1410
color: true,
15-
1611
format: "esm",
17-
1812
logLevel: On ? "debug" : "silent",
19-
2013
metafile: Meta,
21-
2214
minify: !On,
23-
2415
outbase: "Source/Configuration",
25-
2616
outdir: "Configuration",
27-
2817
platform: "node",
29-
3018
target: "esnext",
31-
3219
tsconfig: "tsconfig.json",
33-
3420
write: true,
35-
3621
legalComments: On ? "inline" : "none",
37-
3822
bundle: false,
39-
4023
assetNames: "Asset/[name]-[hash]",
41-
4224
sourcemap: On,
43-
4425
drop: On ? [] : ["debugger"],
45-
4626
ignoreAnnotations: !On,
47-
4827
keepNames: On,
49-
5028
plugins: [
5129
{
5230
name: "Target",
53-
5431
// @ts-ignore
5532
setup({ onStart, initialOptions: { outdir } }) {
5633
switch (true) {
@@ -61,29 +38,22 @@ export default {
6138
? await (await import("node:fs/promises")).rm(outdir, {
6239
recursive: true,
6340
})
64-
6541
: {};
6642
}
67-
6843
catch (_Error) {
6944
console.log(_Error);
7045
}
7146
});
72-
7347
break;
74-
7548
default:
7649
break;
7750
}
7851
},
7952
},
8053
],
81-
8254
loader: {
8355
".json": "copy",
84-
8556
".sh": "copy",
8657
},
8758
};
88-
8959
export const { sep, posix } = await import("node:path");

0 commit comments

Comments
 (0)