项目作者: crowbartools

项目描述 :
A TypeScript template for Firebot Custom Scripts
高级语言: JavaScript
项目地址: git://github.com/crowbartools/firebot-custom-script-starter.git
创建时间: 2020-11-30T09:04:40Z
项目社区:https://github.com/crowbartools/firebot-custom-script-starter

开源协议:GNU General Public License v3.0

下载


Starter Firebot Custom Script in Typescript

Setup

  1. Create a new repo based off this template (Click “Use this Template” above) or simply fork it
  2. npm install

Building

Dev:

  1. npm run build:dev
  • Automatically copies the compiled .js to Firebot’s scripts folder.

Release:

  1. npm run build
  • Copy .js from /dist

Note

  • Keep the script definition object (that contains the run, getScriptManifest, and getDefaultParameters funcs) in the main.ts file as it’s important those function names don’t get minimized.
  • Edit the "scriptOutputName" property in package.json to change the filename of the outputted script.