1. Getting Started
trigger edited this page Apr 3, 2020
·
4 revisions
- Node.js.
- Warcraft III 1.31.0 or greater.
- Clone the repository and cd to the project root.
git clone https://github.com/triggerhappy187/wc3-ts-template.git
cd wc3-ts-template
- Install the node dependencies.
npm install
- Configure your project by editing
config.json
and making suregameExecutable
properly points to your game executable.
We can build the map first to make sure there are no errors.
npm run build
When successful, the terminal output should be similar to the text below.
Transpiling TypeScript to Lua...
Building "map.w3x"...
Creating w3x archive...
info: Finished!
Now, we can test the map. Warcraft III should load up the map automatically after typing in the command.
npm run test