@powerlines/plugin-typedoc 0.10.310 → 0.10.312
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.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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/core\" {\n interface BaseConfig {\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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-typedoc",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.312",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running TypeDoc on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -90,17 +90,17 @@
|
|
|
90
90
|
"@stryke/fs": "^0.33.43",
|
|
91
91
|
"@stryke/path": "^0.26.6",
|
|
92
92
|
"defu": "^6.1.4",
|
|
93
|
-
"powerlines": "^0.39.
|
|
93
|
+
"powerlines": "^0.39.12",
|
|
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.
|
|
98
|
+
"@powerlines/plugin-plugin": "^0.12.255",
|
|
99
99
|
"@types/node": "^25.3.3"
|
|
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": "
|
|
105
|
+
"gitHead": "cb34e2756e722735631673a7c06509d2640284c1"
|
|
106
106
|
}
|