This is very basic at the moment.
An easy to use template to get you started coding in TypeScript for Warcraft III maps.
npx degit github:Z-Machine/wc3-ts-example my-new-project
cd ./my-new-project
npm i
code .
Open up config.json
in the root folder and setup for your local environment.
npm run dev
- Runs a file watcher on all the maps contained within
/maps/
and generates d.ts files for variables inside war3map.lua that get outputted to/src/{map name}.d.ts
- Runs a file watcher on all the maps contained within
npm run build
- Builds and exports the map as a folder and a binary file into
/out/
- Builds and exports the map as a folder and a binary file into
npm run clean
- Empties the
/out/
folder
- Empties the
npm run test
- Will deploy the binary map file to the configured path and then will launch wc3 with -loadfile