Skip to content

Commit

Permalink
0.2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 17, 2023
1 parent 6ac707d commit 6e7310c
Show file tree
Hide file tree
Showing 77 changed files with 926 additions and 363 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.18

- Cleanup

## 0.2.17

- Cleanup
Expand Down
24 changes: 12 additions & 12 deletions Documentation/Class/Theme.Theme.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/Build.Build.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/Build.Exec.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Documentation/Function/Build.Merge.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/Build.resolve.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/Exec.Exec.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/File.File.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/JSON.JSON.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Function/Load.load-1.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Documentation/Function/Merge.Merge.html

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions Documentation/Function/Theme.applyAnchorUrl.html

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions Documentation/Function/Theme.getUrl.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Interface/Build.Type.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Interface/Exec.Type.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Interface/File.Type.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Documentation/Interface/Interface_Merge.Generic.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Documentation/Interface/Interface_Merge.Type.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions Documentation/Interface/Interface_Theme.Type.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Interface/JSON.Type.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Interface/Load.Type.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/Build.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/ESBuild.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/Exec.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/File.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/Interface_Merge.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/Interface_Theme.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/JSON.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/Load.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/Merge.html

Large diffs are not rendered by default.

30 changes: 21 additions & 9 deletions Documentation/Module/Theme.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Module/TypeScriptESBuild.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Variable/Build.Current.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Variable/Build.Pipe.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Variable/ESBuild.ESBuild.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Variable/Load.Load.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Variable/Load.Theme.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.Class.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Documentation/Variable/Theme.DeclarationReflection.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.Enum.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.Interface.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.Module.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.Namespace.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.TypeAlias.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Documentation/Variable/Theme.URL_PREFIX.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Documentation/Variable/Theme.UrlMapping.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Documentation/Variable/TypeScriptESBuild.TypeScriptESBuild.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Documentation/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Documentation/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install -D -E typescript-esbuild
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts'"
},
"devDependencies": {
"typescript-esbuild": "0.2.17"
"typescript-esbuild": "0.2.18"
}
}
```
Expand Down
43 changes: 22 additions & 21 deletions Source/Class/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ export default class
const { Directory } = this._Mapping(Reflection) ?? {};

if (Directory) {
if (
!(
Reflection.url &&
DefaultTheme.URL_PREFIX.test(Reflection.url)
)
) {
const URL = [
Directory,
`${DefaultTheme.getUrl(Reflection)}.html`,
].join("/");
if (!(Reflection.url && URL_PREFIX.test(Reflection.url))) {
const URL = [Directory, `${getUrl(Reflection)}.html`].join("/");

URLs.push(
new UrlMapping(URL, Reflection, this.reflectionTemplate)
Expand All @@ -33,13 +25,13 @@ export default class
if (Child instanceof DeclarationReflection) {
this.buildUrls(Child, URLs);
} else {
DefaultTheme.applyAnchorUrl(Child, Reflection);
applyAnchorUrl(Child, Reflection);
}

return true;
});
} else if (Reflection.parent) {
DefaultTheme.applyAnchorUrl(Reflection, Reflection.parent);
applyAnchorUrl(Reflection, Reflection.parent);
}

return URLs;
Expand All @@ -50,31 +42,31 @@ export default class

Mapping: Mapping[] = [
{
Kind: [ReflectionKind.Class],
Kind: [Class],
Directory: "Class",
},
{
Kind: [ReflectionKind.Interface],
Kind: [Interface],
Directory: "Interface",
},
{
Kind: [ReflectionKind.Enum],
Kind: [Enum],
Directory: "Enum",
},
{
Kind: [ReflectionKind.Namespace, ReflectionKind.Module],
Kind: [Namespace, Module],
Directory: "Module",
},
{
Kind: [ReflectionKind.TypeAlias],
Kind: [TypeAlias],
Directory: "Type",
},
{
Kind: [ReflectionKind.Function],
Kind: [_Function],
Directory: "Function",
},
{
Kind: [ReflectionKind.Variable],
Kind: [Variable],
Directory: "Variable",
},
];
Expand All @@ -85,7 +77,16 @@ import type Type from "../Interface/Theme.js";

export const {
DeclarationReflection,
DefaultTheme,
ReflectionKind,
DefaultTheme: { URL_PREFIX, getUrl, applyAnchorUrl },
ReflectionKind: {
Interface,
Class,
Enum,
Namespace,
Module,
TypeAlias,
Function: _Function,
Variable,
},
UrlMapping,
} = await import("typedoc");
4 changes: 2 additions & 2 deletions Source/Interface/Build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default interface Type {
(
File: Pattern[],
Option?: {
ESBuild?: string | undefined;
TypeScript?: string | undefined;
ESBuild?: string;
TypeScript?: string;
}
): Promise<void>;
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Interface/Exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default interface Type {
* The 'Exec' function is an asynchronous function that executes a command and logs the
* stdout of the child process.
*
* @param {string} Command - The 'Command' parameter is a string that represents the
* @param Command - The 'Command' parameter is a string that represents the
* command you want to execute. It can be any valid command that can be executed in a
* terminal or command prompt.
*
* @param {boolean|function} [Echo] - An optional parameter that controls whether the stdout
* @param Echo - An optional parameter that controls whether the stdout
* of the child process should be logged. If set to 'false', no logging will occur. If set
* to a function, the function will be called with the stdout data as a parameter for custom
* logging. If not provided, stdout will be logged to the console by default.
Expand Down
2 changes: 1 addition & 1 deletion Source/Interface/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default interface Type {
*
* Finally, it imports and returns the default export of the processed JavaScript module.
*
* @param {string} Path - The 'Path' parameter is a string that represents the file path of the file
* @param Path - The 'Path' parameter is a string that represents the file path of the file
* you want to process.
*
*/
Expand Down
4 changes: 2 additions & 2 deletions Source/Interface/Mapping.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @module Mapping
*
* Defines a mapping of a {@link Models.Kind} to a template file.
*
* Used by {@link DefaultTheme} to map reflections to output files.
*
* @module Mapping
*
*/
export default interface Type {
/**
Expand Down
1 change: 1 addition & 0 deletions Source/Interface/Merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Represents a generic interface for deep merging objects using merge functions defined in DeepMergeMergeFunctionsURIs.
*
* @template PMF - A type parameter representing Partial<DeepMergeMergeFunctionsURIs>.
*
*/
export default interface Type<
PMF extends Partial<DeepMergeMergeFunctionsURIs>,
Expand Down
4 changes: 2 additions & 2 deletions Source/Interface/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*/
export default interface Type {
/**
* A function that builds URLs for a given DeclarationReflection and an array of URL mappings.
* A function that builds URLs for a given DeclarationReflection and an array of URLs mappings.
*
* @param Reflection - The DeclarationReflection for which URLs are being built.
*
* @param URLs - An array of URL mappings with any data type.
* @param URLs - An array of URLs mappings with any data type.
*
*/
buildUrls: (
Expand Down
4 changes: 4 additions & 0 deletions Source/Interface/Value.ts → Source/Type/Value.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @module Value
*
*/
export type Type<T> = T[keyof T];

export type { Type as default };
2 changes: 1 addition & 1 deletion Target/Class/Theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default class extends default_base implements Type {
}
import type Mapping from "../Interface/Mapping.js";
import type Type from "../Interface/Theme.js";
export declare const DeclarationReflection: typeof import("typedoc").DeclarationReflection, DefaultTheme: typeof import("typedoc").DefaultTheme, ReflectionKind: typeof import("typedoc").ReflectionKind, UrlMapping: typeof import("typedoc").UrlMapping;
export declare const DeclarationReflection: typeof import("typedoc").DeclarationReflection, URL_PREFIX: RegExp, getUrl: typeof import("typedoc").DefaultTheme.getUrl, applyAnchorUrl: typeof import("typedoc").DefaultTheme.applyAnchorUrl, Interface: import("typedoc").ReflectionKind, Class: import("typedoc").ReflectionKind, Enum: import("typedoc").ReflectionKind, Namespace: import("typedoc").ReflectionKind, Module: import("typedoc").ReflectionKind, TypeAlias: import("typedoc").ReflectionKind, _Function: import("typedoc").ReflectionKind, Variable: import("typedoc").ReflectionKind, UrlMapping: typeof import("typedoc").UrlMapping;
export {};
2 changes: 1 addition & 1 deletion Target/Class/Theme.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Target/Class/TypeScriptESBuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Target/Interface/Build.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default interface Type {
*
*/
(File: Pattern[], Option?: {
ESBuild?: string | undefined;
TypeScript?: string | undefined;
ESBuild?: string;
TypeScript?: string;
}): Promise<void>;
}
import type { Pattern } from "fast-glob";
4 changes: 2 additions & 2 deletions Target/Interface/Exec.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default interface Type {
* The 'Exec' function is an asynchronous function that executes a command and logs the
* stdout of the child process.
*
* @param {string} Command - The 'Command' parameter is a string that represents the
* @param Command - The 'Command' parameter is a string that represents the
* command you want to execute. It can be any valid command that can be executed in a
* terminal or command prompt.
*
* @param {boolean|function} [Echo] - An optional parameter that controls whether the stdout
* @param Echo - An optional parameter that controls whether the stdout
* of the child process should be logged. If set to 'false', no logging will occur. If set
* to a function, the function will be called with the stdout data as a parameter for custom
* logging. If not provided, stdout will be logged to the console by default.
Expand Down
2 changes: 1 addition & 1 deletion Target/Interface/File.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default interface Type {
*
* Finally, it imports and returns the default export of the processed JavaScript module.
*
* @param {string} Path - The 'Path' parameter is a string that represents the file path of the file
* @param Path - The 'Path' parameter is a string that represents the file path of the file
* you want to process.
*
*/
Expand Down
4 changes: 2 additions & 2 deletions Target/Interface/Mapping.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @module Mapping
*
* Defines a mapping of a {@link Models.Kind} to a template file.
*
* Used by {@link DefaultTheme} to map reflections to output files.
*
* @module Mapping
*
*/
export default interface Type {
/**
Expand Down
1 change: 1 addition & 0 deletions Target/Interface/Merge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Represents a generic interface for deep merging objects using merge functions defined in DeepMergeMergeFunctionsURIs.
*
* @template PMF - A type parameter representing Partial<DeepMergeMergeFunctionsURIs>.
*
*/
export default interface Type<PMF extends Partial<DeepMergeMergeFunctionsURIs>> {
/**
Expand Down
4 changes: 2 additions & 2 deletions Target/Interface/Theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*/
export default interface Type {
/**
* A function that builds URLs for a given DeclarationReflection and an array of URL mappings.
* A function that builds URLs for a given DeclarationReflection and an array of URLs mappings.
*
* @param Reflection - The DeclarationReflection for which URLs are being built.
*
* @param URLs - An array of URL mappings with any data type.
* @param URLs - An array of URLs mappings with any data type.
*
*/
buildUrls: (Reflection: DeclarationReflection, URLs: UrlMapping<any>[]) => UrlMapping<any>[];
Expand Down
4 changes: 4 additions & 0 deletions Target/Interface/Value.d.ts → Target/Type/Value.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/**
* @module Value
*
*/
export type Type<T> = T[keyof T];
export type { Type as default };
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-esbuild",
"version": "0.2.17",
"version": "0.2.18",
"private": false,
"description": "🌀 Builds all your TypeScript files into JavaScript and generates documentation for it using TypeDoc.",
"keywords": [
Expand Down Expand Up @@ -36,7 +36,7 @@
"@types/node": "20.8.6",
"commander": "11.1.0",
"deepmerge-ts": "5.1.0",
"esbuild": "0.19.4",
"esbuild": "0.19.5",
"esbuild-plugin-copy": "2.1.1",
"fast-glob": "3.3.1",
"typedoc": "0.25.2",
Expand Down

0 comments on commit 6e7310c

Please sign in to comment.