From 84388ed44b283639741227ab28ec6c524cf0782f Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Tue, 19 Mar 2024 16:41:34 +0200 Subject: [PATCH] squash! --- CHANGELOG.md | 4 ++++ Source/Function/Document.ts | 2 +- Target/Class/TypeScriptDocument.js | 2 +- Target/Function/Document.js | 2 +- package.json | 2 +- test.sh | 1 + 6 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43d7b3d..84fcad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.2 + +- Cleanup + ## 0.0.1 - Initial version diff --git a/Source/Function/Document.ts b/Source/Function/Document.ts index ebafbfd..2a13ebe 100644 --- a/Source/Function/Document.ts +++ b/Source/Function/Document.ts @@ -13,7 +13,7 @@ export default (async (...[File]: Parameters) => { Pipe.reverse(); - console.log( + Exec( [ "typedoc", "--commentStyle all", diff --git a/Target/Class/TypeScriptDocument.js b/Target/Class/TypeScriptDocument.js index 17e93be..56801b7 100644 --- a/Target/Class/TypeScriptDocument.js +++ b/Target/Class/TypeScriptDocument.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -var e=new(await import("commander")).Command().name("TypeScriptDocument").version("0.0.1").description("\u{1F4C3} Document TypeScript.").argument("","Document File.").action((await import("../Function/Document.js")).default).parse();export{e as default}; +var e=new(await import("commander")).Command().name("TypeScriptDocument").version("0.0.2").description("\u{1F4C3} Document TypeScript.").argument("","Document File.").action((await import("../Function/Document.js")).default).parse();export{e as default}; diff --git a/Target/Function/Document.js b/Target/Function/Document.js index 89f074e..1ff8205 100644 --- a/Target/Function/Document.js +++ b/Target/Function/Document.js @@ -1 +1 @@ -var r=async(...[i])=>{for(const n of i)for(const s of await(await import("fast-glob")).default(n.replaceAll("'","").replaceAll('"',"")))t.push(s);t.reverse(),console.log(["typedoc","--commentStyle all","--gitRevision Current",`--customCss ${e(`${o}/../Stylesheet/Theme.css`)}`,"--includeVersion","--out ./Documentation",`--plugin ${e(`${o}/../../Target/Variable/Load.js`)}`,`--plugin ${e(`${o}/../../node_modules/typedoc-plugin-remove-references/dist/index.js`)}`,`--plugin ${e(`${o}/../../node_modules/typedoc-plugin-rename-defaults/index.js`)}`,`--plugin ${e(`${o}/../../node_modules/typedoc-plugin-mdn-links/dist/index.js`)}`,`--plugin ${e(`${o}/../../node_modules/typedoc-plugin-zod/dist/plugin.js`)}`,`--plugin ${e(`${o}/../../node_modules/typedoc-plugin-merge-modules/dist/index.js`)}`,`--plugin ${e(`${o}/../../node_modules/typedoc-plugin-keywords/index.js`)}`,"--searchInComments",`--keywords ${(await(await import("../Function/JSON.js")).default("package.json",process.cwd()))?.keywords?.join(" --keywords ")??" typescript-document "}`,"--theme TypeScriptDocument","--entryPointStrategy expand","--mergeModulesRenameDefaults","--mergeModulesMergeMode module",`--entryPoints ${t.join(" --entryPoints ")}`].join(" "))};const{default:d}=await import("../Function/Exec.js"),{resolve:e}=await import("path"),t=[],o=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{o as Current,d as Exec,t as Pipe,r as default,e as resolve}; +var d=async(...[i])=>{for(const n of i)for(const s of await(await import("fast-glob")).default(n.replaceAll("'","").replaceAll('"',"")))o.push(s);o.reverse(),r(["typedoc","--commentStyle all","--gitRevision Current",`--customCss ${e(`${t}/../Stylesheet/Theme.css`)}`,"--includeVersion","--out ./Documentation",`--plugin ${e(`${t}/../../Target/Variable/Load.js`)}`,`--plugin ${e(`${t}/../../node_modules/typedoc-plugin-remove-references/dist/index.js`)}`,`--plugin ${e(`${t}/../../node_modules/typedoc-plugin-rename-defaults/index.js`)}`,`--plugin ${e(`${t}/../../node_modules/typedoc-plugin-mdn-links/dist/index.js`)}`,`--plugin ${e(`${t}/../../node_modules/typedoc-plugin-zod/dist/plugin.js`)}`,`--plugin ${e(`${t}/../../node_modules/typedoc-plugin-merge-modules/dist/index.js`)}`,`--plugin ${e(`${t}/../../node_modules/typedoc-plugin-keywords/index.js`)}`,"--searchInComments",`--keywords ${(await(await import("../Function/JSON.js")).default("package.json",process.cwd()))?.keywords?.join(" --keywords ")??" typescript-document "}`,"--theme TypeScriptDocument","--entryPointStrategy expand","--mergeModulesRenameDefaults","--mergeModulesMergeMode module",`--entryPoints ${o.join(" --entryPoints ")}`].join(" "))};const{default:r}=await import("../Function/Exec.js"),{resolve:e}=await import("path"),o=[],t=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{t as Current,r as Exec,o as Pipe,d as default,e as resolve}; diff --git a/package.json b/package.json index e160208..3dec86b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typescript-document", - "version": "0.0.1", + "version": "0.0.2", "private": false, "description": "📃 TypeDoc Wrapper.", "keywords": [ diff --git a/test.sh b/test.sh index d8881b2..de75730 100644 --- a/test.sh +++ b/test.sh @@ -3,6 +3,7 @@ \typedoc \ --commentStyle all \ --gitRevision Current \ + --logLevel Verbose \ --customCss /d/Developer/Application/Playform/NPM/TypeScriptDocument/Target/Stylesheet/Theme.css \ --includeVersion \ --out ./Documentation \