Trailmakers Typescript Scaffolding Project
To get started run:
cd "<YOUR TRAILMAKERS MODS DIRECTORY>"
npx degit spidunno/trailmakers-scaffolding "my-trailmakers-project"
cd "my-trailmakers-project"
Install dependencies with yarn/npm/bun:
npm install
Edit the src/main.ts
file and build your project with:
npm run build
To watch for file changes and automatically re-build:
npm run watch
Uploading
Copy the generated main.lua
as well as the data_static
folder into another folder and upload as usual. I might make a script that automatically does everything needed to prepare your mod to be uploaded later.