Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Mar 17, 2024
1 parent d360263 commit 777b0d8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 115 deletions.
7 changes: 7 additions & 0 deletions Source/Class/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,37 @@ export default class

Mapping: Mapping[] = [
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [Class],
Directory: "Class",
},
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [Interface],
Directory: "Interface",
},
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [Enum],
Directory: "Enum",
},
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [Namespace, Module],
Directory: "Module",
},
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [TypeAlias],
Directory: "Type",
},
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [_Function],
Directory: "Function",
},
{
// biome-ignore lint/correctness/noInvalidUseBeforeDeclaration:
Kind: [Variable],
Directory: "Variable",
},
Expand Down
51 changes: 10 additions & 41 deletions Source/Function/Document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @module Document
*
*/
export default (async (...[File, Option]: Parameters<Type>) => {
export default (async (...[File]: Parameters<Type>) => {
for (const _File of File) {
for (const __File of await (await import("fast-glob")).default(
_File.replaceAll("'", "").replaceAll('"', ""),
Expand All @@ -13,45 +13,6 @@ export default (async (...[File, Option]: Parameters<Type>) => {

Pipe.reverse();

const Configuration = Merge(
(await import("../Variable/ESBuild.js")).default,
{
entryPoints: Object.fromEntries(
Pipe.map((File) => [
File.replace("Source/", "")
.split(".")
.slice(0, -1.0)
.join("."),
File,
]),
),
},
);

console.log(
await (await import("esbuild")).analyzeMetafile(
(
await (
await import("esbuild")
).build(
Option?.ESBuild
? Merge(
Configuration,
await (
await import("../Function/File.js")
).default(Option.ESBuild),
)
: Configuration,
)
)?.metafile ?? "",
{
verbose: true,
},
),
);

Exec(`tsc -p ${Option?.TypeScript ?? "tsconfig.json"}`);

Exec(
[
"typedoc",
Expand Down Expand Up @@ -79,7 +40,15 @@ export default (async (...[File, Option]: Parameters<Type>) => {
"--entryPointStrategy expand",
"--mergeModulesRenameDefaults",
"--mergeModulesMergeMode module",
`--entryPoints ${Object.values(Configuration.entryPoints).join(
`--entryPoints ${Object.values(Object.fromEntries(
Pipe.map((File) => [
File.replace("Source/", "")
.split(".")
.slice(0, -1.0)
.join("."),
File,
]),
)).join(
" --entryPoints ",
)}`,
].join(" "),
Expand Down
65 changes: 0 additions & 65 deletions Source/Notation/TypeScript.json

This file was deleted.

4 changes: 0 additions & 4 deletions Source/Variable/ESBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export default {
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/Notation/TypeScript.json",
to: "./Notation/",
},
{
from: "./Source/Stylesheet/Theme.css",
to: "./Stylesheet/",
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"TypeScriptDocument": "Target/Class/TypeScriptDocument.js"
},
"scripts": {
"prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Class/TypeScriptDocument.ts 'Source/**/*.ts'"
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts'"
},
"dependencies": {
"@types/node": "20.11.28",
Expand All @@ -45,11 +45,10 @@
"typedoc-plugin-merge-modules": "5.1.0",
"typedoc-plugin-remove-references": "0.0.6",
"typedoc-plugin-rename-defaults": "0.7.0",
"typedoc-plugin-zod": "1.1.2",
"typescript": "5.4.2"
"typedoc-plugin-zod": "1.1.2"
},
"devDependencies": {
"ts-node": "10.9.2"
"typescript-esbuild": "0.0.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"compilerOptions": {
"outDir": "Target"
},
"extends": "./Source/Notation/TypeScript",
"extends": "typescript-esbuild/Target/Notation/TypeScript",
"include": ["Source"]
}

0 comments on commit 777b0d8

Please sign in to comment.