@remqb/burgwarts
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

BurgWarTypes

Requirements

  • node

Installation

npm install -D typescript-to-lua ts-node @remqb/burgwarts 

Example tsconfig.json

The plugin is required if you want to type entity properties and inheritance. ts-node.skipIgnore is required for the plugin.

See the tstl documentation for additional options.

{
    "compilerOptions": {
        "target": "esnext",
        "outDir": "dist/",
        "module": "commonjs",
        "lib": ["esnext"],
        "strict": true,
        "sourceMap": true,
        "moduleResolution": "node",
        "rootDir": "./src",
        "types": [
            "lua-types/5.3",
            "@remqb/burgwarts",
            "typescript-to-lua/language-extensions"
        ],
        "inlineSources": true,
        "allowJs": true,
        "noImplicitAny": true
    },
    "ts-node": {
        "skipIgnore": true
    },
    "tstl": {
        "luaTarget": "5.3",
        "luaLibImport": "require",
        "noImplicitSelf": true,
        "luaPlugins": [{
            "name": "@remqb/burgwarts/plugin"
        }]
    }
}

Usage

All types should be available when adding burgwarts to types array in tsconfig.json

You can compile your scripts with this command:

npx tstl

You can add the --watch option if you want it to recompile your files when they are modified.

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i @remqb/burgwarts

Weekly Downloads

2

Version

1.0.15

License

ISC

Unpacked Size

53 kB

Total Files

52

Last publish

Collaborators

  • remqb