Skip to content

Commit

Permalink
add typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
pileks committed Sep 18, 2023
1 parent 59f8314 commit e6c6a37
Show file tree
Hide file tree
Showing 39 changed files with 758 additions and 544 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ polywrap.deployment.txt
**/__pycache__/
**/dist/
poetry.lock
examples/yarn.lock
examples/yarn.lock
reference
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"graphql": "15.5.0",
"lerna": "4.0.0",
"prettier": "2.2.1",
"rimraf": "3.0.2",
"ts-node": "10.9.1",
"rimraf": "3.0.2"
"typedoc": "^0.25.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/asyncify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"lib": [
"es2020",
Expand Down
4 changes: 4 additions & 0 deletions packages/asyncify/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"lib": [
"es2020",
Expand Down
4 changes: 4 additions & 0 deletions packages/client/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/config-builder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"include": [
"./src/**/*.ts",
"./examples/**/*.ts"
Expand Down
4 changes: 4 additions & 0 deletions packages/config-builder/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/config-bundle/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/config-bundle/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/config-bundles/sys/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig",
"extends": "../../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/config-bundles/sys/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/config-bundles/web3/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig",
"extends": "../../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/config-bundles/web3/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/core-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"lib": [
"es2020",
Expand Down
4 changes: 4 additions & 0 deletions packages/core-client/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/core/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/manifests/wrap/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig",
"extends": "../../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/msgpack/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"lib": [
"es2020",
Expand Down
4 changes: 4 additions & 0 deletions packages/msgpack/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/plugin/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/result/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/result/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/test-cases/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"lib": [
"es2020",
Expand Down
2 changes: 1 addition & 1 deletion packages/tracing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build",
"typeRoots": [
Expand Down
4 changes: 4 additions & 0 deletions packages/tracing/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/uri-resolver-extensions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/uri-resolver-extensions/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/uri-resolvers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/uri-resolvers/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/wasm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "build"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/wasm/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entryPoints": ["./src/index.ts"],
"tsconfig": "./tsconfig.json"
}
8 changes: 3 additions & 5 deletions tsconfig.json → tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"preserveSymlinks": true,
"preserveWatchOutput": true,
"pretty": false,
Expand All @@ -22,9 +23,6 @@
"sourceMap": true,
"target": "es5",
"resolveJsonModule": true,
"strictNullChecks": true
},
"include": [
"./src/**/*"
],
"strictNullChecks": true,
}
}
49 changes: 49 additions & 0 deletions tsconfig.docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"references": [
{
"path": "./packages/asyncify"
},
{
"path": "./packages/client"
},
{
"path": "./packages/config-builder"
},
{
"path": "./packages/config-bundle"
},
{
"path": "./packages/config-bundles/sys"
},
{
"path": "./packages/config-bundles/web3"
},
{
"path": "./packages/core"
},
{
"path": "./packages/core-client"
},
{
"path": "./packages/msgpack"
},
{
"path": "./packages/plugin"
},
{
"path": "./packages/result"
},
{
"path": "./packages/tracing"
},
{
"path": "./packages/uri-resolver-extensions"
},
{
"path": "./packages/uri-resolvers"
},
{
"path": "./packages/wasm"
}
]
}
4 changes: 4 additions & 0 deletions typedoc.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": true,
}
12 changes: 12 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"entryPoints": ["./packages/*", "./packages/config-bundles/*"],
"exclude": ["./packages/test-cases"],
"name": "Polywrap Javascript Client",
"entryPointStrategy": "packages",
"includeVersion": true,
"tsconfig": "./tsconfig.docs.json",
"out": "./reference"

// Potentially useful for debugging
// "logLevel": "Verbose"
}
Loading

0 comments on commit e6c6a37

Please sign in to comment.