refactor: added type generation from schema for sdk with comments
This commit is contained in:
parent
2683d46b16
commit
04e332d91e
7 changed files with 65 additions and 20 deletions
14
scripts/sdk/README.md
Normal file
14
scripts/sdk/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Gameflow Deck SDK
|
||||
|
||||
This is the type definitions for Gameflow Deck plugins.
|
||||
|
||||
## Developing a plugin
|
||||
|
||||
The plugin must have a default export class of type `PluginType`. It exposes the context and all the hooks to be tapped.
|
||||
Gameflow uses the [Tapable Hooks](https://github.com/webpack/tapable).
|
||||
|
||||
The package must expose a main script gameflow will import and validate. It must implement the type fields on `PluginDescriptionType`.
|
||||
|
||||
## Publishing
|
||||
|
||||
For the plugin to show up in the UI for download. It must be published to NPM with the `gameflow-plugin` keyword. Gameflow uses bun to install plugins as packages from npmjs.
|
||||
Loading…
Add table
Add a link
Reference in a new issue