mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-09 22:13:19 +00:00
main
ComputerCraft-TS
Note
This document is AI-generated.
A template for developing ComputerCraft programs using TypeScript.
Getting Started
Prerequisites
Installation
- Clone the repository:
git clone <repository-url> - Install dependencies:
pnpm install
Building
To build the project, run the following command:
pnpm build
This will compile the TypeScript code in src/ to Lua and output it to the dist/ directory.
Usage
After building the project, you can copy the compiled Lua code from the dist/ directory to your ComputerCraft computer.
Project Structure
src/main.ts: The main entry point of your program.tsconfig.json: TypeScript compiler options.package.json: Project metadata and dependencies.scripts/postbuild.js: A script that runs after the build process.
Dependencies
- TypeScriptToLua: A TypeScript to Lua compiler.
- typescript-tstl-plugin: A plugin for TypeScriptToLua.
Description
Languages
JavaScript
94.8%
TypeScript
5.2%