Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add runtime and runtime-async packages #200

Merged
merged 20 commits into from
Jun 11, 2022
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a9dbcce
feat: add dependencies, config, and package.json for new runtime and …
chrispcampbell Jun 9, 2022
1d22c83
feat: add runtime package sources
chrispcampbell Jun 9, 2022
59f7366
feat: add runtime-async package sources
chrispcampbell Jun 9, 2022
a0a50d6
build: add typedoc and a gen-docs script
chrispcampbell Jun 9, 2022
4009690
build: fail the build if there are any untracked/modified files
chrispcampbell Jun 9, 2022
b647696
docs: add typedoc-generated API docs for runtime package
chrispcampbell Jun 9, 2022
1eda016
docs: unhide WasmModule but keep its properties hidden for now
chrispcampbell Jun 10, 2022
1c170d2
build: fix expansion of sed args in gen-docs script
chrispcampbell Jun 10, 2022
eed4468
build: don't remove docs directory in clean script
chrispcampbell Jun 10, 2022
b948019
docs: use index.md in the breadcrumb links
chrispcampbell Jun 10, 2022
b51c099
docs: hide private members and preserve ordering of members from sour…
chrispcampbell Jun 10, 2022
779f0b7
build: convert gen-docs to a Node script that can apply custom substi…
chrispcampbell Jun 10, 2022
fbd6b66
docs: add API docs for runtime-async package
chrispcampbell Jun 10, 2022
50f3df2
fix: ignore ./docs directory so that only children are deleted
chrispcampbell Jun 10, 2022
9429dcb
fix: remove unnecessary InitWasmModel type alias
chrispcampbell Jun 10, 2022
37e348b
feat: add terminate function to ModelRunner interface
chrispcampbell Jun 10, 2022
7b342a3
test: add integration test for runtime-async package
chrispcampbell Jun 10, 2022
7134f11
test: add test for createWasmModelRunner
chrispcampbell Jun 10, 2022
eb046f2
test: add tests for ModelScheduler
chrispcampbell Jun 11, 2022
a8a9362
docs: link to the API docs from the README
chrispcampbell Jun 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build: add typedoc and a gen-docs script
chrispcampbell committed Jun 9, 2022
commit a0a50d69d93022bdf109ba6100f53349ff3a396e
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -28,6 +28,8 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"tsup": "^6.1.0",
"typedoc": "^0.22.17",
"typedoc-plugin-markdown": "^3.12.1",
"typescript": "^4.7.3",
"vitest": "^0.14.1"
},
120 changes: 120 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions scripts/gen-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

#
# This script runs typedoc to generate API documentation in Markdown format
# for the TypeScript package in the current working directory.
#

# Remove the existing generated docs
find docs ! -name 'index.md' -delete

# Generate the docs for the current package
typedoc \
--tsconfig ./tsconfig-build.json \
--disableSources \
--readme none \
--githubPages false \
--plugin typedoc-plugin-markdown \
--entryDocument entry.md \
--hideInPageTOC \
--hideMembersSymbol \
--allReflectionsHaveOwnDocument \
--out docs \
--cleanOutputDir false \
src/index.ts

# Update breadcrumb links to point to our custom `index.md`
if [[ "$OSTYPE" == "darwin"* ]]; then
in_place=''
else
in_place=
fi
grep -rl "entry.md" docs | xargs sed -i $in_place 's/entry\.md/index\.md/g'