@powerlines/plugin-typedoc 0.10.339 → 0.10.341

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -54,5 +54,4 @@ function plugin(options = {}) {
54
54
  var src_default = plugin;
55
55
 
56
56
  //#endregion
57
- export { src_default as default, plugin };
58
- //# sourceMappingURL=index.mjs.map
57
+ export { src_default as default, plugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-typedoc",
3
- "version": "0.10.339",
3
+ "version": "0.10.341",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for running TypeDoc on the codebase.",
6
6
  "repository": {
@@ -86,21 +86,21 @@
86
86
  "files": ["dist/**/*"],
87
87
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
88
88
  "dependencies": {
89
- "@storm-software/config-tools": "^1.189.21",
90
- "@stryke/fs": "^0.33.55",
91
- "@stryke/path": "^0.26.17",
89
+ "@storm-software/config-tools": "^1.189.27",
90
+ "@stryke/fs": "^0.33.57",
91
+ "@stryke/path": "^0.26.19",
92
92
  "defu": "^6.1.4",
93
- "powerlines": "^0.40.18",
93
+ "powerlines": "^0.40.20",
94
94
  "typedoc": "0.25.12",
95
95
  "typedoc-plugin-markdown": "4.0.0-next.20"
96
96
  },
97
97
  "devDependencies": {
98
- "@powerlines/plugin-plugin": "^0.12.282",
99
- "@types/node": "^25.3.5"
98
+ "@powerlines/plugin-plugin": "^0.12.284",
99
+ "@types/node": "^25.4.0"
100
100
  },
101
101
  "publishConfig": { "access": "public" },
102
102
  "main": "./dist/index.cjs",
103
103
  "module": "./dist/index.mjs",
104
104
  "types": "./dist/index.d.cts",
105
- "gitHead": "7aff4b34ac598df76db48e9b713a2ff08ee85134"
105
+ "gitHead": "8d772181f794749e0f19f97c732dd921148c31c8"
106
106
  }
package/dist/index.d.cts DELETED
@@ -1,17 +0,0 @@
1
- import { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig } from "./types/plugin.cjs";
2
- import "./types/index.cjs";
3
- import { Plugin } from "powerlines";
4
-
5
- //#region src/index.d.ts
6
- declare module "powerlines" {
7
- interface Config {
8
- typedoc?: TypeDocPluginOptions;
9
- }
10
- }
11
- /**
12
- * A Powerlines plugin to assist in generating documentation with TypeDoc.
13
- */
14
- declare function plugin(options?: TypeDocPluginOptions): Plugin<TypeDocPluginContext>;
15
- //#endregion
16
- export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig, plugin as default, plugin };
17
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAoCwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAWxB;AACW,iBADK,MAAA,CACL,OAAA,CAAA,EAAA,oBAAA,CAAA,EACR,MADQ,CACD,oBADC,CAAA"}
package/dist/index.d.mts DELETED
@@ -1,17 +0,0 @@
1
- import { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig } from "./types/plugin.mjs";
2
- import "./types/index.mjs";
3
- import { Plugin } from "powerlines";
4
-
5
- //#region src/index.d.ts
6
- declare module "powerlines" {
7
- interface Config {
8
- typedoc?: TypeDocPluginOptions;
9
- }
10
- }
11
- /**
12
- * A Powerlines plugin to assist in generating documentation with TypeDoc.
13
- */
14
- declare function plugin(options?: TypeDocPluginOptions): Plugin<TypeDocPluginContext>;
15
- //#endregion
16
- export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig, plugin as default, plugin };
17
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAoCwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAWxB;AACW,iBADK,MAAA,CACL,OAAA,CAAA,EAAA,oBAAA,CAAA,EACR,MADQ,CACD,oBADC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { createDirectory, removeDirectory } from \"@stryke/fs/helpers\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport {\n Application,\n PackageJsonReader,\n TSConfigReader,\n TypeDocReader\n} from \"typedoc\";\nimport {\n TypeDocPluginContext,\n TypeDocPluginOptions,\n TypeDocPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n typedoc?: TypeDocPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in generating documentation with TypeDoc.\n */\nexport function plugin(\n options: TypeDocPluginOptions = {}\n): Plugin<TypeDocPluginContext> {\n return {\n name: \"typedoc\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `typedoc` build plugin.\"\n );\n\n return {\n typedoc: defu(options, {\n outputPath: joinPaths(\n this.config.root,\n \"docs\",\n \"generated\",\n \"api-reference\"\n ),\n baseUrl: \"/docs/\",\n excludeExternals: true,\n excludeInternal: true,\n excludePrivate: true,\n excludeProtected: true,\n hideGenerator: true,\n githubPages: false,\n readme: \"none\",\n gitRevision: this.workspaceConfig.branch || \"main\",\n tsconfig: this.tsconfig.tsconfigFilePath,\n plugin: options.plugin ? [] : [\"typedoc-plugin-markdown\"]\n })\n } as Partial<TypeDocPluginUserConfig>;\n },\n async configResolved() {\n this.typedoc = await Application.bootstrapWithPlugins(\n {\n ...this.config.typedoc,\n exclude:\n this.config.typedoc.exclude ??\n this.tsconfig.tsconfigJson.exclude?.filter(Boolean) ??\n [],\n out: this.config.typedoc.outputPath,\n entryPoints: this.entry.map(entry =>\n appendPath(entry.file, this.config.root)\n ),\n ...this.config.typedoc.override\n },\n [new TypeDocReader(), new PackageJsonReader(), new TSConfigReader()]\n );\n },\n async docs() {\n this.debug(\n `Generating documentation for the Powerlines application with TypeDoc.`\n );\n\n if (existsSync(this.config.typedoc.outputPath)) {\n await removeDirectory(this.config.typedoc.outputPath);\n }\n\n await createDirectory(this.config.typedoc.outputPath);\n\n const project = await this.typedoc.convert();\n if (project) {\n await this.typedoc.generateDocs(\n project,\n this.config.typedoc.outputPath\n );\n }\n }\n };\n}\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA+CA,SAAgB,OACd,UAAgC,EAAE,EACJ;AAC9B,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,QAAK,MACH,6EACD;AAED,UAAO,EACL,SAAS,KAAK,SAAS;IACrB,YAAY,UACV,KAAK,OAAO,MACZ,QACA,aACA,gBACD;IACD,SAAS;IACT,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,aAAa;IACb,QAAQ;IACR,aAAa,KAAK,gBAAgB,UAAU;IAC5C,UAAU,KAAK,SAAS;IACxB,QAAQ,QAAQ,SAAS,EAAE,GAAG,CAAC,0BAA0B;IAC1D,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,UAAU,MAAM,YAAY,qBAC/B;IACE,GAAG,KAAK,OAAO;IACf,SACE,KAAK,OAAO,QAAQ,WACpB,KAAK,SAAS,aAAa,SAAS,OAAO,QAAQ,IACnD,EAAE;IACJ,KAAK,KAAK,OAAO,QAAQ;IACzB,aAAa,KAAK,MAAM,KAAI,UAC1B,WAAW,MAAM,MAAM,KAAK,OAAO,KAAK,CACzC;IACD,GAAG,KAAK,OAAO,QAAQ;IACxB,EACD;IAAC,IAAI,eAAe;IAAE,IAAI,mBAAmB;IAAE,IAAI,gBAAgB;IAAC,CACrE;;EAEH,MAAM,OAAO;AACX,QAAK,MACH,wEACD;AAED,OAAI,WAAW,KAAK,OAAO,QAAQ,WAAW,CAC5C,OAAM,gBAAgB,KAAK,OAAO,QAAQ,WAAW;AAGvD,SAAM,gBAAgB,KAAK,OAAO,QAAQ,WAAW;GAErD,MAAM,UAAU,MAAM,KAAK,QAAQ,SAAS;AAC5C,OAAI,QACF,OAAM,KAAK,QAAQ,aACjB,SACA,KAAK,OAAO,QAAQ,WACrB;;EAGN;;AAGH,kBAAe"}
@@ -1,2 +0,0 @@
1
- import { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig } from "./plugin.cjs";
2
- export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig };
@@ -1,2 +0,0 @@
1
- import { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig } from "./plugin.mjs";
2
- export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig };
@@ -1,60 +0,0 @@
1
- import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
2
- import { Application, ProjectReflection, TypeDocOptions } from "typedoc";
3
-
4
- //#region src/types/plugin.d.ts
5
- interface GenerateDocsOptions {
6
- frontmatter?: Record<string, any>;
7
- outputPath?: string;
8
- project: ProjectReflection;
9
- }
10
- interface TypeDocPluginOptions extends Partial<Omit<TypeDocOptions, "out">> {
11
- /**
12
- * The output path for the generated documentation.
13
- *
14
- * @defaultValue "docs/generated/api-reference"
15
- */
16
- outputPath?: string;
17
- /**
18
- * The base URL for the documentation site.
19
- *
20
- * @defaultValue "/docs/"
21
- */
22
- basePath?: string;
23
- /**
24
- * Options to be passed to the TypeDoc generator.
25
- *
26
- * @remarks
27
- * These options will be override any other values passed to the TypeDoc generator.
28
- */
29
- override?: Partial<TypeDocOptions>;
30
- }
31
- interface TypeDocPluginUserConfig extends UserConfig {
32
- /**
33
- * Options for the TypeDoc plugin.
34
- */
35
- typedoc: TypeDocPluginOptions;
36
- }
37
- interface TypeDocPluginResolvedConfig extends ResolvedConfig {
38
- /**
39
- * Options for the TypeDoc plugin.
40
- */
41
- typedoc: TypeDocOptions & {
42
- outputPath: string;
43
- baseUrl: string;
44
- override?: Partial<TypeDocOptions>;
45
- };
46
- }
47
- type TypeDocPluginContext<TResolvedConfig extends TypeDocPluginResolvedConfig = TypeDocPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
48
- /**
49
- * The initialized TypeDoc application.
50
- */
51
- typedoc: Application;
52
- };
53
- declare type __ΩGenerateDocsOptions = any[];
54
- declare type __ΩTypeDocPluginOptions = any[];
55
- declare type __ΩTypeDocPluginUserConfig = any[];
56
- declare type __ΩTypeDocPluginResolvedConfig = any[];
57
- declare type __ΩTypeDocPluginContext = any[];
58
- //#endregion
59
- export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig };
60
- //# sourceMappingURL=plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAqBiB,mBAAA;gBACD;EADC,UAAA,CAAA,EAAA,MAAA;EAMA,OAAA,EAHN,iBAG2B;;AACpC,UADe,oBAAA,SAA6B,OAC5C,CAAA,IAAA,CAAK,cAAL,EAAA,KAAA,CAAA,CAAA,CAAA;EAsBmB;;;;AAGrB;EAOiB,UAAA,CAAA,EAAA,MAAA;EAIN;;;;;EAOC,QAAA,CAAA,EAAA,MAAA;EACc;;;;;;aAtBb,QAAQ;;UAGJ,uBAAA,SAAgC;;;;WAItC;;UAGM,2BAAA,SAAoC;;;;WAI1C;;;eAGI,QAAQ;;;KAIX,6CACc,8BACtB,+BACA,cAAc;;;;WAIP"}
@@ -1,60 +0,0 @@
1
- import { Application, ProjectReflection, TypeDocOptions } from "typedoc";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
-
4
- //#region src/types/plugin.d.ts
5
- interface GenerateDocsOptions {
6
- frontmatter?: Record<string, any>;
7
- outputPath?: string;
8
- project: ProjectReflection;
9
- }
10
- interface TypeDocPluginOptions extends Partial<Omit<TypeDocOptions, "out">> {
11
- /**
12
- * The output path for the generated documentation.
13
- *
14
- * @defaultValue "docs/generated/api-reference"
15
- */
16
- outputPath?: string;
17
- /**
18
- * The base URL for the documentation site.
19
- *
20
- * @defaultValue "/docs/"
21
- */
22
- basePath?: string;
23
- /**
24
- * Options to be passed to the TypeDoc generator.
25
- *
26
- * @remarks
27
- * These options will be override any other values passed to the TypeDoc generator.
28
- */
29
- override?: Partial<TypeDocOptions>;
30
- }
31
- interface TypeDocPluginUserConfig extends UserConfig {
32
- /**
33
- * Options for the TypeDoc plugin.
34
- */
35
- typedoc: TypeDocPluginOptions;
36
- }
37
- interface TypeDocPluginResolvedConfig extends ResolvedConfig {
38
- /**
39
- * Options for the TypeDoc plugin.
40
- */
41
- typedoc: TypeDocOptions & {
42
- outputPath: string;
43
- baseUrl: string;
44
- override?: Partial<TypeDocOptions>;
45
- };
46
- }
47
- type TypeDocPluginContext<TResolvedConfig extends TypeDocPluginResolvedConfig = TypeDocPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
48
- /**
49
- * The initialized TypeDoc application.
50
- */
51
- typedoc: Application;
52
- };
53
- declare type __ΩGenerateDocsOptions = any[];
54
- declare type __ΩTypeDocPluginOptions = any[];
55
- declare type __ΩTypeDocPluginUserConfig = any[];
56
- declare type __ΩTypeDocPluginResolvedConfig = any[];
57
- declare type __ΩTypeDocPluginContext = any[];
58
- //#endregion
59
- export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig };
60
- //# sourceMappingURL=plugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAqBiB,mBAAA;gBACD;EADC,UAAA,CAAA,EAAA,MAAA;EAMA,OAAA,EAHN,iBAG2B;;AACpC,UADe,oBAAA,SAA6B,OAC5C,CAAA,IAAA,CAAK,cAAL,EAAA,KAAA,CAAA,CAAA,CAAA;EAsBmB;;;;AAGrB;EAOiB,UAAA,CAAA,EAAA,MAAA;EAIN;;;;;EAOC,QAAA,CAAA,EAAA,MAAA;EACc;;;;;;aAtBb,QAAQ;;UAGJ,uBAAA,SAAgC;;;;WAItC;;UAGM,2BAAA,SAAoC;;;;WAI1C;;;eAGI,QAAQ;;;KAIX,6CACc,8BACtB,+BACA,cAAc;;;;WAIP"}