Skip to content

Commit

Permalink
Fixed typedoc setup for monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Feb 25, 2024
1 parent 2d9267c commit ffe0ddd
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 20 deletions.
2 changes: 1 addition & 1 deletion core/nut.js/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# nut.js (Native UI Toolkit)
# @nut-tree/nut-js

This is the core package for nut.js, the one package that keeps all the other packages together. It provides the basic functionality to interact with the screen, the keyboard, and the mouse.
2 changes: 1 addition & 1 deletion core/nut.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"publish:next": "pnpm publish --tag next --no-git-checks",
"publish:release": "pnpm publish --no-git-checks",
"prepublishOnly": "pnpm run compile",
"typedoc": "typedoc --options ./typedoc.js --entryPointStrategy expand ./lib"
"typedoc": "typedoc --out docs"
},
"dependencies": {
"@nut-tree/default-clipboard-provider": "workspace:*",
Expand Down
14 changes: 0 additions & 14 deletions core/nut.js/typedoc.js

This file was deleted.

4 changes: 4 additions & 0 deletions core/nut.js/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["index.ts"]
}
3 changes: 3 additions & 0 deletions core/provider-interfaces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @nut-tree/provider-interfaces

This package contains all defined provider interfaces which can be used for custom implementations.
3 changes: 2 additions & 1 deletion core/provider-interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"compile": "pnpm run clean && tsc -p .",
"publish:next": "pnpm publish --tag next --no-git-checks",
"publish:release": "pnpm publish --no-git-checks",
"prepublishOnly": "pnpm run compile"
"prepublishOnly": "pnpm run compile",
"typedoc": "typedoc --out docs"
},
"keywords": [
"nut-js",
Expand Down
4 changes: 4 additions & 0 deletions core/provider-interfaces/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["index.ts"]
}
3 changes: 3 additions & 0 deletions core/shared/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @nut-tree/shared

This package contains shared code to be used by the @nut-tree/nut-js and e.g. provider implementations.
3 changes: 2 additions & 1 deletion core/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"compile": "pnpm run clean && tsc -p .",
"publish:next": "pnpm publish --tag next --no-git-checks",
"publish:release": "pnpm publish --no-git-checks",
"prepublishOnly": "pnpm run compile"
"prepublishOnly": "pnpm run compile",
"typedoc": "typedoc --out docs"
},
"dependencies": {
"node-abort-controller": "3.1.1",
Expand Down
4 changes: 4 additions & 0 deletions core/shared/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["index.ts"]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"coverage:clean": "pnpm -r run coverage:clean",
"prepare": "husky install",
"publish:next": "pnpm -r run publish:next",
"publish:release": "pnpm -r run publish:release"
"publish:release": "pnpm -r run publish:release",
"typedoc-all": "pnpm -r run typedoc",
"typedoc": "pnpm run typedoc-all && typedoc"
},
"packageManager": "[email protected]",
"workspaces": [
Expand All @@ -18,7 +20,6 @@
"examples/*",
"e2e/*"
],
"dependencies": {},
"devDependencies": {
"@types/jest": "29.5.12",
"@types/node": "20.11.17",
Expand Down
16 changes: 16 additions & 0 deletions typedoc.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://typedoc.org/schema.json",
"exclude": [
"**/dist/**",
"**/node_modules/**",
"**/*.spec.ts",
"**/__mocks__/**"
],
"excludePrivate": true,
"excludeExternals": true,
"excludeProtected": true,
"hideGenerator": true,
"entryPointStrategy": "expand",
"includeVersion": true,
"theme": "default"
}
10 changes: 10 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPointStrategy": "packages",
"entryPoints": [
"core/nut.js",
"core/provider-interfaces",
"core/shared"
],
"includeVersion": false
}

0 comments on commit ffe0ddd

Please sign in to comment.