Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 693 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 693 Bytes

tfm-tstl-plugin

Provides the plugin for bundling TypeScriptToLua code into Transformice-compatible Lua code.

Recommend coupling this plugin with tfm-tstl-types to extend Intellisense with Transformice environment definition.

Install

  1. Get this package from npm
npm install -D tfm-tstl-plugin
# or
yarn add -D tfm-tstl-plugin
  1. Modify your tsconfig.json
{
  "tstl": {
    "buildMode": "default",
    "luaBundle": "bundle.lua",
    "luaBundleEntry": "src/main.ts",
    "luaPlugins": [
+      {"name": "tfm-tstl-plugin"}
    ],
    "luaTarget": "5.2"
  }
}