From 2e0667829e555f90714ab7972c7d3ccb6c7f2d96 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 27 Sep 2023 16:04:04 +0300 Subject: [PATCH] squash! --- Documentation/_routes.json | 5 - Documentation/assets/navigation.js | 2 +- Documentation/assets/search.js | 2 +- Documentation/functions/Build.Build.html | 20 ++- Documentation/functions/Build.Exec.html | 20 ++- Documentation/functions/Build.deepmerge.html | 18 ++- Documentation/functions/Build.resolve.html | 138 ++++++++++++++++++ Documentation/functions/Exec.Exec.html | 20 ++- Documentation/functions/File.File.html | 38 ++--- .../functions/Function_JSON.JSON.html | 20 ++- .../functions/Function_TypeDoc.load.html | 125 ++++++++++++++++ Documentation/index.html | 18 ++- Documentation/interfaces/Build.Type.html | 20 ++- Documentation/interfaces/Exec.Type.html | 20 ++- Documentation/interfaces/File.Type.html | 38 ++--- Documentation/modules/Build.html | 25 +++- Documentation/modules/Exec.html | 20 ++- Documentation/modules/File.html | 20 ++- Documentation/modules/Function_JSON.html | 20 ++- Documentation/modules/Function_TypeDoc.html | 121 +++++++++++++++ Documentation/modules/Object_ESBuild.html | 20 ++- Documentation/modules/TypeScriptESBuild.html | 20 ++- Documentation/variables/Build.Current.html | 116 +++++++++++++++ .../variables/Object_ESBuild.ESBuild.html | 20 ++- .../TypeScriptESBuild.TypeScriptESBuild.html | 20 ++- Source/Function/Build.ts | 13 +- Source/Function/TypeDoc.ts | 18 +++ Target/Function/Build.d.ts | 2 + Target/Function/Build.js | 2 +- Target/Function/TypeDoc.d.ts | 3 + Target/Function/TypeDoc.js | 1 + 31 files changed, 831 insertions(+), 114 deletions(-) delete mode 100644 Documentation/_routes.json create mode 100644 Documentation/functions/Build.resolve.html create mode 100644 Documentation/functions/Function_TypeDoc.load.html create mode 100644 Documentation/modules/Function_TypeDoc.html create mode 100644 Documentation/variables/Build.Current.html create mode 100644 Source/Function/TypeDoc.ts create mode 100644 Target/Function/TypeDoc.d.ts create mode 100644 Target/Function/TypeDoc.js diff --git a/Documentation/_routes.json b/Documentation/_routes.json deleted file mode 100644 index 848a6445..00000000 --- a/Documentation/_routes.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "include": ["/*"], - "exclude": ["/functions/*"] -} diff --git a/Documentation/assets/navigation.js b/Documentation/assets/navigation.js index 68f4e930..1fb53f7a 100644 --- a/Documentation/assets/navigation.js +++ b/Documentation/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACqWTPQ+CMBCG/0tnIolfA6OJDg464GYIwXJKFSqpxWiM/11aka+2gnGk791zTw/YPhCHG0cOmmUkDpGF0oBH+WNyDrMYLrY8HkQ8ifPsRGiInKGFcJSfMqDI2ZaAzT2Fqp9QDmwf4BIh4hZnMn1apvn7jGJOzvTTrvGYjmvt8xtgc7dIvzSHAGkC7ABmQlmiYDyjxWeH6vRfVygJXRs0rUA2azdQV1+QGFR1cfqfuiR0qTeHV+qyWXVoqxf19tJdrzR3KGJfxL0u0+TUdBokFdfyWu+OgLk9dw3/1jv3i7yXmcK6BowEOw1NSx0NG4LitbiYkZQbHZWS3l+DAVwJq+iOYdLeewFEqdSiswQAAA==" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACqWUT0/DIBiHvwvnxiZTd+hRnQcP7lBvy7Iw+s4y6Z8wuswYv7uArLQF2hqP5X3fp88PWjZfSMBFoAQ9NJRlKEI1Frl8LKqsYXCK9fJNLgomax+0zFCyiBDJ5SqHEiWbFvD2WYOdp6UAfsCkRajygHO//I7a8ceGS6CwhDPmFO+tg2noM24XHcQgwqEpiaBVeQV4oizvOuOrC5DwtKqODGcAdQH8HcKEtmUEw+FUsfMIxDQ4iG0wyPUk3QB/PUhNmDrH0C7qYe8mdtWfKQNXXa3+T10TptT7L7fqeth1GKqb/vglXb96MpjyTpVnhelzOjo9kosLean4T5Xny2iBpmOWHauw919zYKpxVHC9PwIR8SoNXEG/9Z2pz5JzWPYyGdC8VHmrdAVVkpRwWougo9My+3MNgK2wi554mbbf/gCIRZwt2gUAAA==" \ No newline at end of file diff --git a/Documentation/assets/search.js b/Documentation/assets/search.js index 32f54ebe..17322d83 100644 --- a/Documentation/assets/search.js +++ b/Documentation/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACp1WTY+bMBT8Lz4jEvNNjivtSu2he0jVSxRFBJyWXb4EZLtVxH+vbSDmEb+G9BJkPDMe5j3buZC6/N2Qze5C3tMiIRvLIEWUM7Ih3/9UbBvXadU+b5/OaZYQg5zrjM/kZXLOWLO6QZi/2jzjsDiLmoZxWUI6Y1S2l0h/RHUaHfXiS5YzSBXVrGi1iygvyor+y+5/jedcJZ4/WXxVOJ2LuE3LYtQQk//2Ofc2UU4Yq3JW/2So/BXx32vAAOb6C3LGswXBjNEigTySrJS4H6xk63y9pBm78SVeLvUFBJQvKYHoTHxJttbXoLT6un39dmtwmD2I2aVOgdLEKdBCBKeWgbOJd9cDm/q6VFq0rD5F8XUvidkH+2iBtmyC+9LzTligLMt4Xxmt5evxjcXtCjs6++nDg+cmflrO9BYdkDOL3d7gASTsk2wu5IPVDa83R1mmbYacdkpZloibojfDRcs8F0L7Ye4HFytrgeghqzUxdmuDhqbv0P3e2I0MOSFfSBjFYBTALD6iOpgFYDYfWQb1TNv3AMwGMIePbMNyzMAJAcwBMBdb1AUwD1vUAzAfg/kAFvCRo1s0ALAQg4UwXpG2q/tUOquDyNvTAmElqEjc130HhbWgNgqE1aAOCoT1oCL3QOsRVoSK5EMtsK+JbHbe5S1LvvRNz9v22O+uCzkMG4GOW+9CLP7TGcQVj051vxgJ+clVrei2ojsIjzU3i4aKxc0iNHkzKo6lOHZv1OsfPiJwkleYEnCUQNAzQ4w53gVvDT8gJhLuxPcaIc853oRDEU7Zn1OapIIJGytMKw94xfEnnKGmdIiMYkUSGo38K6kxsVaC60FHJ8MbrkorlqUFh+72XfcXClNWjnsLAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACp1XyW7bMBT8F54F26RW+5g2BdpDc3DRi2EEikW3SmXJkGQ3heF/L0kt5JP4YjmXCDRnhvMWLrmQsvhbkdXmQv6keUJWzCF5fOBkRX78O/L1rkyP9eP64ZRmCXHIqczEzKFIThmv5iPE7Hd9yARsl8VVxYUsIVenU3anSJ/jMo1f7OJTlnPIMS55XlsX0V60FXtkt6MJvF7i8Y3veoX9Kd/VaZF3GnLyfZ9Db4ZywvnxwMtfHJXvER9eo+RVkZ3xFdr5+/SNWn86lQo0rnCj385/2D8s4ND9hD7BewMUtmsNpKD3dIaSuN0Yim3z9SXN+MiX/HGqLyCgfSkJRMfwpdhWX63S/Nv66fvYYDv7LGenOgVKhlOghQialoGzd73LY+NzMa57v2QLmBpBVsS29hzJSdzEIDqLRhx+AA7XfsE0r3m5j3f9dpOzd+6HCdqqmW9LDzt6grJqx9vKaE8+vbzyXT3HrrBm+vnO+wu/tQZ6ky6qgcXr1hEJSPgbWV3ImZeVKLlAsZk7WwraPuVZIm/sxowQLQ4HKbRt534KsaKUiAYyXxBns3AYnYVetN06m46hJtQPCkYxGAUwJkbUBmMA5ooRc2g0cyMXwFwA88TIdVgwi/wAwDwA88XIs8F8AAvEyLfBAgALsRBCAIuwECIAW2KwJUyvzHZgze+gDhQFwkpQmfHQFi6FtaAy55EVCKtBZdaXViCsB5V5pwsrEpaEytRTassPhVWhIY6EhaERjoS1obIGlFl9wvIwWQRqbUXW1EdtS7Efa558bban2GAvzTlwIc/tlqXdIXEhTPy5OiSUn6vep3Kk5LuHkSb7mhwgLONJqHmu5nkIj1djqwZNxIjw1BNGk5jmuE18UfNZIgJ79dbQAoEWoIuGKvoa4XY33mslzkBDJDRE2C1yLW6PpABRLA0+lrHhmpHBcRFOc9kbKV4YJB8hFc35b6uQkW2KJbh/wGuep2nYorW6b42ljMalQVuXsP1G74hU6l8si3kj9K7ONhmxrY7pkWdpLqCb7fX6H8R/2+WTDgAA"; \ No newline at end of file diff --git a/Documentation/functions/Build.Build.html b/Documentation/functions/Build.Build.html index 14f43455..dfd39fb6 100644 --- a/Documentation/functions/Build.Build.html +++ b/Documentation/functions/Build.Build.html @@ -63,7 +63,7 @@

Returns +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Build.ts:15
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -105,10 +110,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -118,6 +123,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/functions/Build.Exec.html b/Documentation/functions/Build.Exec.html index 7832665d..6d4f75c3 100644 --- a/Documentation/functions/Build.Exec.html +++ b/Documentation/functions/Build.Exec.html @@ -58,7 +58,7 @@

    Returns

  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Exec.ts:21
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -100,10 +105,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -113,6 +118,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/functions/Build.deepmerge.html b/Documentation/functions/Build.deepmerge.html index 705cd26a..4037b469 100644 --- a/Documentation/functions/Build.deepmerge.html +++ b/Documentation/functions/Build.deepmerge.html @@ -66,6 +66,8 @@

    Returns DeepMerg
  • Type
  • +
  • +
    Current
  • Build
  • @@ -74,7 +76,10 @@

    Returns DeepMerg

  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -93,10 +98,10 @@

    Returns DeepMerg

  • +
  • Function/JSON
    @@ -106,6 +111,13 @@

    Returns DeepMerg
    JSON

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/functions/Build.resolve.html b/Documentation/functions/Build.resolve.html new file mode 100644 index 00000000..df4fcd16 --- /dev/null +++ b/Documentation/functions/Build.resolve.html @@ -0,0 +1,138 @@ +resolve | typescript-esbuild - v0.1.16
    +
    + +
    +
    +
    +
    + +

    Function resolve

    +
    +
      + +
    • +

      The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

      +

      Starting from leftmost {from} parameter, resolves {to} to an absolute path.

      +

      If {to} isn't already absolute, {from} arguments are prepended in right to left order, +until an absolute path is found. If after using all {from} paths still no absolute path is found, +the current working directory is used as well. The resulting path is normalized, +and trailing slashes are removed unless the path gets resolved to the root directory.

      +
      +
      +

      Parameters

      +
        +
      • +
        Rest ...paths: string[]
        +

        A sequence of paths or path segments.

        +
        +
      +

      Returns string

      +
      +

      Throws

      if any of the arguments is not a string.

      +
    +
    +
    +

    Generated using TypeDoc

    +
    \ No newline at end of file diff --git a/Documentation/functions/Exec.Exec.html b/Documentation/functions/Exec.Exec.html index 3f4dae08..46f23736 100644 --- a/Documentation/functions/Exec.Exec.html +++ b/Documentation/functions/Exec.Exec.html @@ -58,7 +58,7 @@

    Returns

  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Exec.ts:21
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -100,10 +105,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -113,6 +118,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/functions/File.File.html b/Documentation/functions/File.File.html index 14d81f54..7b8c36ce 100644 --- a/Documentation/functions/File.File.html +++ b/Documentation/functions/File.File.html @@ -33,29 +33,17 @@

    Function File

    • -

      This function asynchronously processes a file located at the given path. If the file is a TypeScript -(.ts) file, it performs the following steps:

      -
        -
      1. Converts TypeScript code to JavaScript.
      2. -
      3. Creates a JavaScript module and emits it.
      4. -
      5. Writes the transpiled JavaScript code to a new file with a .js extension.
      6. -
      -

      Finally, it imports and returns the default export of the processed JavaScript module.

      +

      rome-ignore lint/suspicious/noExplicitAny:

      Parameters

      • -
        Path: string
        -

        The 'Path' parameter is a string that represents the file path of the file -you want to process.

        -
        -
      -

      Returns Promise<any>

      A promise that resolves with the default export of the module imported using the provided 'Path'.

      - +
      Path: string
    +

    Returns Promise<any>

  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/File.ts:21
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -97,10 +90,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -110,6 +103,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/functions/Function_JSON.JSON.html b/Documentation/functions/Function_JSON.JSON.html index 7c1dc620..ba8ebfc0 100644 --- a/Documentation/functions/Function_JSON.JSON.html +++ b/Documentation/functions/Function_JSON.JSON.html @@ -56,7 +56,7 @@
    Optional Returns Promise<any>
  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/JSON.ts:11
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -98,10 +103,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -111,6 +116,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/functions/Function_TypeDoc.load.html b/Documentation/functions/Function_TypeDoc.load.html new file mode 100644 index 00000000..0a3805f7 --- /dev/null +++ b/Documentation/functions/Function_TypeDoc.load.html @@ -0,0 +1,125 @@ +load | typescript-esbuild - v0.1.16
    +
    + +
    + +
    +

    Generated using TypeDoc

    +
    \ No newline at end of file diff --git a/Documentation/index.html b/Documentation/index.html index 38123cc0..77f45719 100644 --- a/Documentation/index.html +++ b/Documentation/index.html @@ -69,6 +69,8 @@

    Type

  • +
  • +
    Current
  • Build
  • @@ -77,7 +79,10 @@

    The 'Exec' function is an asynchronous function that executes a command and logs the
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -96,10 +101,10 @@

  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -109,6 +114,13 @@

    The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/interfaces/Build.Type.html b/Documentation/interfaces/Build.Type.html index 26dab8a8..3ee36d0a 100644 --- a/Documentation/interfaces/Build.Type.html +++ b/Documentation/interfaces/Build.Type.html @@ -67,7 +67,7 @@

    Returns

  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Build.ts:15
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -109,10 +114,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -122,6 +127,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/interfaces/Exec.Type.html b/Documentation/interfaces/Exec.Type.html index bd6091e7..b2af2af3 100644 --- a/Documentation/interfaces/Exec.Type.html +++ b/Documentation/interfaces/Exec.Type.html @@ -62,7 +62,7 @@

    Returns

  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Exec.ts:21
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -104,10 +109,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -117,6 +122,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/interfaces/File.Type.html b/Documentation/interfaces/File.Type.html index 6e7cab24..816a71d4 100644 --- a/Documentation/interfaces/File.Type.html +++ b/Documentation/interfaces/File.Type.html @@ -37,29 +37,17 @@

    Hierarchy

    • -

      This function asynchronously processes a file located at the given path. If the file is a TypeScript -(.ts) file, it performs the following steps:

      -
        -
      1. Converts TypeScript code to JavaScript.
      2. -
      3. Creates a JavaScript module and emits it.
      4. -
      5. Writes the transpiled JavaScript code to a new file with a .js extension.
      6. -
      -

      Finally, it imports and returns the default export of the processed JavaScript module.

      +

      rome-ignore lint/suspicious/noExplicitAny:

      Parameters

      • -
        Path: string
        -

        The 'Path' parameter is a string that represents the file path of the file -you want to process.

        -
        -
      -

      Returns Promise<any>

      A promise that resolves with the default export of the module imported using the provided 'Path'.

      - +
      Path: string
    +

    Returns Promise<any>

  • +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/File.ts:21
  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -101,10 +94,10 @@

    Returns
  • Type -
  • +

  • File -
  • +
  • Function/JSON
    @@ -114,6 +107,13 @@

    Returns The function 'JSON' is a TypeScript function that reads a JSON file and returns its

  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/modules/Build.html b/Documentation/modules/Build.html index 2ae48917..5e135cc2 100644 --- a/Documentation/modules/Build.html +++ b/Documentation/modules/Build.html @@ -29,7 +29,7 @@

    Theme

  • Module Exec

    +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/Exec.ts:1
  • Index

    @@ -55,6 +55,8 @@

    Functions

  • Type
  • +
  • +
    Current
  • Build
  • @@ -63,7 +65,10 @@

    Functions

  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -82,10 +87,10 @@

    Functions

  • +
  • Function/JSON
    @@ -95,6 +100,13 @@

    Functions

    JSON
  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/modules/File.html b/Documentation/modules/File.html index 25c12a6a..ddad1b23 100644 --- a/Documentation/modules/File.html +++ b/Documentation/modules/File.html @@ -29,7 +29,7 @@

    Theme

  • Module Function/JSON

    +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/JSON.ts:1
  • Index

    @@ -51,6 +51,8 @@

    Functions

  • Type
  • +
  • +
    Current
  • Build
  • @@ -59,7 +61,10 @@

    Functions

  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -78,10 +83,10 @@

    Functions

  • +
  • Function/JSON
    @@ -91,6 +96,13 @@

    Functions

    JSON
  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/modules/Function_TypeDoc.html b/Documentation/modules/Function_TypeDoc.html new file mode 100644 index 00000000..45b2eedd --- /dev/null +++ b/Documentation/modules/Function_TypeDoc.html @@ -0,0 +1,121 @@ +Function/TypeDoc | typescript-esbuild - v0.1.16
    +
    + +
    + +
    +

    Generated using TypeDoc

    +
    \ No newline at end of file diff --git a/Documentation/modules/Object_ESBuild.html b/Documentation/modules/Object_ESBuild.html index 7b3df6ef..9daa5a56 100644 --- a/Documentation/modules/Object_ESBuild.html +++ b/Documentation/modules/Object_ESBuild.html @@ -29,7 +29,7 @@

    Theme

  • Module TypeScriptESBuild

    +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Class/TypeScriptESBuild.ts:1
  • Index

    @@ -51,6 +51,8 @@

    Variables

  • Type
  • +
  • +
    Current
  • Build
  • @@ -59,7 +61,10 @@

    Variables

  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -78,10 +83,10 @@

    Variables

  • +
  • Function/JSON
    @@ -91,6 +96,13 @@

    Variables

    JSON
  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Documentation/variables/Build.Current.html b/Documentation/variables/Build.Current.html new file mode 100644 index 00000000..2d33cb1a --- /dev/null +++ b/Documentation/variables/Build.Current.html @@ -0,0 +1,116 @@ +Current | typescript-esbuild - v0.1.16
    +
    + +
    + +
    +

    Generated using TypeDoc

    +
    \ No newline at end of file diff --git a/Documentation/variables/Object_ESBuild.ESBuild.html b/Documentation/variables/Object_ESBuild.ESBuild.html index f1c91d3a..06284700 100644 --- a/Documentation/variables/Object_ESBuild.ESBuild.html +++ b/Documentation/variables/Object_ESBuild.ESBuild.html @@ -31,7 +31,7 @@

    Theme

    TypeScriptESBuild: Command
    +
  • Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Class/TypeScriptESBuild.ts:7
  • Type
  • +
  • +
    Current
  • Build
  • @@ -54,7 +56,10 @@

    Variable TypeScriptESBuild

  • deepmerge -
  • + +
  • +
    resolve +
  • Exec
    @@ -73,10 +78,10 @@

    Variable TypeScriptESBuild

  • +
  • Function/JSON
    @@ -86,6 +91,13 @@

    Variable TypeScriptESBuild

    JSON
  • +
    +
    Function/TypeDoc
    +
    +
  • +
  • Object/ESBuild
    diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index 09d2b401..a1a007f7 100644 --- a/Source/Function/Build.ts +++ b/Source/Function/Build.ts @@ -63,12 +63,7 @@ export default (async (...[File, Option]: Parameters) => { `typedoc \ --commentStyle all \ --gitRevision main \ - --disableGit \ - --customCss ${(await import("path")).resolve( - `${(await import("url")).fileURLToPath( - (await import("path")).dirname(import.meta.url) - )}/../Sheet/TypeDoc.css` - )} \ + --customCss ${resolve(`${Current}/../Sheet/TypeDoc.css`)} \ --includeVersion \ --out ./Documentation \ --plugin typedoc-plugin-remove-references \ @@ -77,6 +72,7 @@ export default (async (...[File, Option]: Parameters) => { --plugin typedoc-plugin-zod \ --plugin @mxssfd/typedoc-theme \ --plugin typedoc-plugin-merge-modules \ + --plugin ${resolve(`${Current}/../../Target/Function/TypeDoc.js`)} \ --theme my-theme \ --entryPointStrategy expand \ --mergeModulesRenameDefaults \ @@ -92,3 +88,8 @@ import type Type from "../Interface/Build.js"; export const { default: Exec } = await import("../Function/Exec.js"); export const { deepmerge } = await import("deepmerge-ts"); +export const { resolve } = await import("path"); + +export const Current = (await import("url")).fileURLToPath( + (await import("path")).dirname(import.meta.url) +); diff --git a/Source/Function/TypeDoc.ts b/Source/Function/TypeDoc.ts new file mode 100644 index 00000000..57a0eb8c --- /dev/null +++ b/Source/Function/TypeDoc.ts @@ -0,0 +1,18 @@ +import { Application, Context, Converter, ParameterType } from "typedoc"; + +export const load = (app: Application) => { + app.options.addDeclaration({ + name: "plugin-option", + help: "Displayed when --help is passed", + type: ParameterType.String, // The default + defaultValue: "", // The default + }); + + app.converter.on(Converter.EVENT_RESOLVE, (_Context: Context) => { + if (app.options.getValue("plugin-option") === "something") { + // ... + } + }); +}; + +export default load; diff --git a/Target/Function/Build.d.ts b/Target/Function/Build.d.ts index c15cf3aa..c749697b 100644 --- a/Target/Function/Build.d.ts +++ b/Target/Function/Build.d.ts @@ -7,3 +7,5 @@ export default _default; import type Type from "../Interface/Build.js"; export declare const Exec: import("../Interface/Exec.js").default; export declare const deepmerge: typeof import("deepmerge-ts").deepmerge; +export declare const resolve: (...paths: string[]) => string; +export declare const Current: string; diff --git a/Target/Function/Build.js b/Target/Function/Build.js index ca1d29f2..8c313c46 100644 --- a/Target/Function/Build.js +++ b/Target/Function/Build.js @@ -1 +1 @@ -var s=async(...[p,e])=>{const i=[];p.forEach(async t=>(await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',""))).forEach(n=>i.push(n))),i.reverse();const a=l((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(i.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),r=await(await import("esbuild")).build(e?.ESBuild?l(a,await(await import("../Function/File.js")).default(e?.ESBuild)):a);console.log(r.metafile?await(await import("esbuild")).analyzeMetafile(r.metafile,{verbose:!0}):{}),e?.TypeScript?o(`tsc -p ${e?.TypeScript}`):o("tsc"),o(`typedoc --commentStyle all --gitRevision main --disableGit --customCss ${(await import("path")).resolve(`${(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url))}/../Sheet/TypeDoc.css`)} --includeVersion --out ./Documentation --plugin typedoc-plugin-remove-references --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin @mxssfd/typedoc-theme --plugin typedoc-plugin-merge-modules --theme my-theme --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(a.entryPoints).join(" --entryPoints ")}`)};const{default:o}=await import("../Function/Exec.js"),{deepmerge:l}=await import("deepmerge-ts");export{o as Exec,l as deepmerge,s as default}; +var m=async(...[s,e])=>{const i=[];s.forEach(async t=>(await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',""))).forEach(c=>i.push(c))),i.reverse();const a=n((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(i.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),r=await(await import("esbuild")).build(e?.ESBuild?n(a,await(await import("../Function/File.js")).default(e?.ESBuild)):a);console.log(r.metafile?await(await import("esbuild")).analyzeMetafile(r.metafile,{verbose:!0}):{}),e?.TypeScript?o(`tsc -p ${e?.TypeScript}`):o("tsc"),o(`typedoc --commentStyle all --gitRevision main --customCss ${p(`${l}/../Sheet/TypeDoc.css`)} --includeVersion --out ./Documentation --plugin typedoc-plugin-remove-references --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin @mxssfd/typedoc-theme --plugin typedoc-plugin-merge-modules --plugin ${p(`${l}/../../Target/Function/TypeDoc.js`)} --theme my-theme --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(a.entryPoints).join(" --entryPoints ")}`)};const{default:o}=await import("../Function/Exec.js"),{deepmerge:n}=await import("deepmerge-ts"),{resolve:p}=await import("path"),l=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{l as Current,o as Exec,n as deepmerge,m as default,p as resolve}; diff --git a/Target/Function/TypeDoc.d.ts b/Target/Function/TypeDoc.d.ts new file mode 100644 index 00000000..849fe0ae --- /dev/null +++ b/Target/Function/TypeDoc.d.ts @@ -0,0 +1,3 @@ +import { Application } from "typedoc"; +export declare const load: (app: Application) => void; +export default load; diff --git a/Target/Function/TypeDoc.js b/Target/Function/TypeDoc.js new file mode 100644 index 00000000..18a59851 --- /dev/null +++ b/Target/Function/TypeDoc.js @@ -0,0 +1 @@ +import{Converter as t,ParameterType as o}from"typedoc";const n=e=>{e.options.addDeclaration({name:"plugin-option",help:"Displayed when --help is passed",type:o.String,defaultValue:""}),e.converter.on(t.EVENT_RESOLVE,i=>{e.options.getValue("plugin-option")})};var r=n;export{r as default,n as load};