Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TypeScriptToLua/TypeScriptToLua
Typescript to lua transpiler. https://typescripttolua.github.io/
https://github.com/TypeScriptToLua/TypeScriptToLua
compiler converter lua lua-transpiler transpiler typescript
Last synced: about 1 month ago
JSON representation
Typescript to lua transpiler. https://typescripttolua.github.io/
- Host: GitHub
- URL: https://github.com/TypeScriptToLua/TypeScriptToLua
- Owner: TypeScriptToLua
- License: mit
- Created: 2017-12-31T17:26:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-25T09:12:41.000Z (about 2 months ago)
- Last Synced: 2024-10-29T15:27:12.050Z (about 1 month ago)
- Topics: compiler, converter, lua, lua-transpiler, transpiler, typescript
- Language: TypeScript
- Homepage:
- Size: 6.45 MB
- Stars: 2,130
- Watchers: 33
- Forks: 171
- Open Issues: 124
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - TypeScriptToLua
README
---
A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!
Large projects written in Lua can become hard to maintain and make it easy to make mistakes. Writing code in TypeScript instead improves maintainability, readability and robustness, with the added bonus of good [tooling] support (including [ESLint], [Prettier], [Visual Studio Code] and [WebStorm]). This project is useful in any environment where Lua code is accepted, with the powerful option of simply declaring any existing API using TypeScript declaration files.
[tooling]: https://typescripttolua.github.io/docs/editor-support
[eslint]: https://eslint.org/
[prettier]: https://prettier.io/
[visual studio code]: https://code.visualstudio.com/
[webstorm]: https://www.jetbrains.com/webstorm/## Getting Started
To install TypeScriptToLua add the `typescript-to-lua` npm package:
```bash
$ npm install -D typescript-to-lua
```This package includes the `tstl` command line application, which can be used similarly to `tsc`:
```
$ npx tstl
```For more information, check out [Getting Started](https://typescripttolua.github.io/docs/getting-started) in our documentation.