Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Apr 2, 2024
1 parent c4e562c commit 81cb62f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 📃 [TypeScriptDocument]
# 📃 [Document]

Document all your TypeScript files using TypeDoc.

Expand All @@ -17,10 +17,10 @@ npm install -D -E @playform/document
```json
{
"scripts": {
"Document": "TypeScriptDocument 'Source/**/*.ts'"
"Document": "Document 'Source/**/*.ts'"
}
}
```

[typedoc]: https://npmjs.org/typedoc
[TypeScriptDocument]: https://npmjs.org/@playform/document
[Document]: https://npmjs.org/@playform/document
4 changes: 2 additions & 2 deletions Source/Class/TypeScriptDocument.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node

/**
* @module TypeScriptDocument
* @module Document
*
*/
export default new (await import("commander")).Command()
.name("TypeScriptDocument")
.name("Document")
.version(process.env["VERSION_PACKAGE"] ?? "0.0.1")
.description("📃 Document TypeScript.")
.argument("<File...>", "Document File.")
Expand Down
2 changes: 1 addition & 1 deletion Source/Function/Document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default (async (...[File]: Parameters<Type>) => {
)?.keywords?.join(" --keywords ") ?? " @playform/document "
}`,
// TODO: FIX THIS
// "--theme TypeScriptDocument",
// "--theme Document",
"--entryPointStrategy expand",
"--mergeModulesRenameDefaults",
"--mergeModulesMergeMode module",
Expand Down
2 changes: 1 addition & 1 deletion Source/Variable/Load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
*/
export const load = (...[Application]: Parameters<Type["load"]>) =>
Application.renderer.defineTheme("TypeScriptDocument", Theme);
Application.renderer.defineTheme("Document", Theme);

export default {
load,
Expand Down
2 changes: 1 addition & 1 deletion Target/Class/TypeScriptDocument.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/**
* @module TypeScriptDocument
* @module Document
*
*/
declare const _default: import("commander").Command;
Expand Down
2 changes: 1 addition & 1 deletion Target/Class/TypeScriptDocument.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env node
var e=new(await import("commander")).Command().name("TypeScriptDocument").version("0.0.2").description("\u{1F4C3}\u2000Document TypeScript.").argument("<File...>","Document File.").action((await import("../Function/Document.js")).default).parse();export{e as default};
var e=new(await import("commander")).Command().name("Document").version("0.0.2").description("\u{1F4C3}\u2000Document TypeScript.").argument("<File...>","Document File.").action((await import("../Function/Document.js")).default).parse();export{e as default};
2 changes: 1 addition & 1 deletion Target/Variable/Load.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const t=(...[e])=>e.renderer.defineTheme("TypeScriptDocument",r);var a={load:t};const{default:r}=await import("../Class/Theme.js");export{r as Theme,a as default,t as load};
const t=(...[e])=>e.renderer.defineTheme("Document",a);var o={load:t};const{default:a}=await import("../Class/Theme.js");export{a as Theme,o as default,t as load};
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"url": "https://playform.cloud"
},
"type": "module",
"main": "./Target/Class/TypeScriptDocument.js",
"types": "./Target/Class/TypeScriptDocument.d.ts",
"main": "./Target/Class/Document.js",
"types": "./Target/Class/Document.d.ts",
"bin": {
"TypeScriptDocument": "Target/Class/TypeScriptDocument.js"
"Document": "Target/Class/Document.js"
},
"scripts": {
"Document": "node --no-warnings --loader ts-node/esm Source/Class/TypeScriptDocument.ts 'Source/**/*.ts'",
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts' -ES Configuration/ESBuild.ts"
"Document": "node --no-warnings --loader ts-node/esm Source/Class/Document.ts 'Source/**/*.ts'",
"prepublishOnly": "Build 'Source/**/*.ts' -ES Configuration/ESBuild.ts"
},
"dependencies": {
"commander": "12.0.0",
Expand All @@ -46,7 +46,7 @@
},
"devDependencies": {
"ts-node": "10.9.2",
"@playform/build": "0.0.1",
"@playform/build": "0.0.2",
"esbuild-plugin-copy": "2.1.1"
},
"publishConfig": {
Expand Down

0 comments on commit 81cb62f

Please sign in to comment.