FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Filtik/scripting-docs: JSDoc based SinusBot scripting engine documentation. · GitHub

 
 

Repository files navigation

Scripting engine documentation

This repository contains the JSDoc based javascript file from which the scripting engine documentation is generated.

Build

npm install -g documentation

Generate html file

documentation build api.js --project-name "SinusBot Scripting Engine" -f html -o documentation

IntelliSense

There are TypeScript typings available which are generated out of the documentation. You can use them in IDEs like Visual Studio Code.

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 with the following content:

{
    "compilerOptions": {
        "target": "es5",
        "checkJs": true
    }
}

Or alternatively if you only want to enable type checking for specific files set the config to

{
    "compilerOptions": {
        "target": "es5"
    }
}

and add // @ts-check as the first line of your script that should be checked.

For reference, you can check out this repository.

About

JSDoc based SinusBot scripting engine documentation.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL