TranspilerLS is a TypeScript-to-LeekScript transpiler for the LeekWars programming game. Version 0.4.0 compiles TypeScript code written in a specific project structure into LeekWars-compatible scripts, supporting keyword mappings (e.g., const to var, === to ==), for..of to for..in conversion, template literal transformation, console.log to debug conversion, and enum flattening. It automates login and script upload via environment variables. Release cadence is irregular. Differentiators: it handles LeekWars-specific built-ins (LS object) and enforces a project convention for globals. Requires Node >=10.4.0; ships TypeScript types.
npm install transpiler-lsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup: a TypeScript file using LS and enum, environment config, and transpilation command.
Place all source files under src/editor/
Create the AI file on LeekWars website first, then specify its name.
Avoid multi-line template literals in TypeScript source.
Use string concatenation if passing multiple values.
Run npm install typescript --save-dev
Check .env file and ensure LOGIN and PASSWORD are set correctly.
Create the AI on LeekWars website first.