This repository contains the JSDoc based JavaScript files from which the scripting engine documentation is generated.
Check out our guide in the SinusBot Documentation for explanations on how to get started.
There are TypeScript typings available which are generated out of the documentation. You can use them in IDEs like Visual Studio Code.
First of all you need to install the typings by executing: npm i sinusbot-scripting-engine
or yarn add sinusbot-scripting-engine
.
After you have the typings installed, you need to create a jsconfig.json
in the folder where you develop your scripts with the following content:
{
"compilerOptions": {
"checkJs": true,
"target": "es2018",
"types" : ["sinusbot-scripting-engine"]
},
"typeAcquisition": {"enable": false, "include": ["sinusbot-scripting-engine"]},
"exclude": [
"node_modules",
"**/node_modules/*"
]
}
For reference, you can check out this repository.
npm install
npm run generate-docs
npm run serve-docs
npm run generate-ts