How it works:
1. Mespotine ReaScript API Docs (USDocML)
2. API Docs to JSON (Lua script)
3. JSON to Typescript Definitions (Node.js Typescript script)
4. TypescriptToLua library
5. REAPER =)
How to use this:
- Clone the repo
- Run
yarn install
ornpm install
- Change the code in
./src/example.ts
, make multiple files and import them, do whatever - To have it automatically re-bundle to Lua when file saves are made, run
yarn dev
ornpm run dev
- To manually compile the Lua file, run
yarn build
ornpm run build
- Import this script like any regular ReaScript
You'll find the compiled lua file in ./lua/bundle.lua