diff --git a/Configuration/ESBuild.d.ts b/Configuration/ESBuild.d.ts deleted file mode 100644 index e47c394..0000000 --- a/Configuration/ESBuild.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module ESBuild - * - */ -declare const _default: BuildOptions; -export default _default; -import type { BuildOptions } from "esbuild"; diff --git a/Configuration/ESBuild.js b/Configuration/ESBuild.js deleted file mode 100644 index e575427..0000000 --- a/Configuration/ESBuild.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @module ESBuild - * - */ -export default { - color: true, - format: "esm", - metafile: true, - minify: true, - outdir: "Target", - platform: "node", - target: "esnext", - write: true, - logLevel: "debug", - plugins: [ - { - name: "Target", - setup({ onStart, initialOptions: { outdir } }) { - onStart(async () => { - try { - outdir - ? await (await import("fs/promises")).rm(outdir, { - recursive: true, - }) - : {}; - } - catch (_Error) { - console.log(_Error); - } - }); - }, - }, - (await import("@playform/copy")).copy({ - resolveFrom: "out", - assets: [ - { - from: "./Source/Stylesheet/Theme.css", - to: "./Stylesheet/", - }, - ], - }), - ], - define: { - "process.env.VERSION_PACKAGE": `'${(await (await import("../Target/Function/JSON.js")).default("package.json"))?.version}'`, - }, -}; diff --git a/Configuration/ESBuild.ts b/Configuration/ESBuild.ts deleted file mode 100644 index 290ae6d..0000000 --- a/Configuration/ESBuild.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @module ESBuild - * - */ -export default { - color: true, - format: "esm", - metafile: true, - minify: true, - outdir: "Target", - platform: "node", - target: "esnext", - write: true, - logLevel: "debug", - plugins: [ - { - name: "Target", - setup({ onStart, initialOptions: { outdir } }) { - onStart(async () => { - try { - outdir - ? await (await import("fs/promises")).rm(outdir, { - recursive: true, - }) - : {}; - } catch (_Error) { - console.log(_Error); - } - }); - }, - }, - (await import("@playform/copy")).default({ - Resolve: "out", - Asset: [ - { - from: "./Source/Stylesheet/Theme.css", - to: "./Stylesheet/", - }, - ], - }), - ], - define: { - "process.env.VERSION_PACKAGE": `'${ - ( - await ( - await import("../Target/Function/JSON.js") - ).default("package.json") - )?.version - }'`, - }, -} satisfies BuildOptions as BuildOptions; - -import type { BuildOptions } from "esbuild"; diff --git a/Source/Function/Document.ts b/Source/Function/Document.ts index d6de5b7..ccbc00b 100644 --- a/Source/Function/Document.ts +++ b/Source/Function/Document.ts @@ -4,9 +4,9 @@ */ export default (async (...[File]: Parameters) => { for (const _File of File) { - for (const __File of await (await import("fast-glob")).default( - _File.replaceAll("'", "").replaceAll('"', ""), - )) { + for (const __File of await ( + await import("fast-glob") + ).default(_File.replaceAll("'", "").replaceAll('"', ""))) { Pipe.push(__File); } } @@ -17,7 +17,7 @@ export default (async (...[File]: Parameters) => { [ "typedoc", "--commentStyle all", - `--customCss ${resolve(`${Current}/../Stylesheet/Theme.css`)}`, + `--customCss ${resolve(`${Current}/../../Stylesheet/Theme.css`)}`, "--includeVersion", "--out ./Documentation", // TODO: FIX THIS @@ -42,7 +42,7 @@ export default (async (...[File]: Parameters) => { "--mergeModulesRenameDefaults", "--mergeModulesMergeMode module", `--entryPoints ${Pipe.join(" --entryPoints ")}`, - ].join(" "), + ].join(" ") ); }) satisfies Type as Type; @@ -55,5 +55,5 @@ export const { resolve } = await import("path"); export const Pipe: string[] = []; export const Current = (await import("url")).fileURLToPath( - (await import("path")).dirname(import.meta.url), + (await import("path")).dirname(import.meta.url) ); diff --git a/Source/Stylesheet/Theme.css b/Stylesheet/Theme.css similarity index 100% rename from Source/Stylesheet/Theme.css rename to Stylesheet/Theme.css