- Clone the project
- Run
npm install - Create a subfolder in src (f.ex. see src/helloWorld)
- Ensure that the subfolder has an index.ts file
- Run
npm run build:watch - In game, select the file from the dist folder
- Edit your code, webpack will automatically recompile whenever you save any of the source files
- Tweak the
entryfield in webpack.config.js
Get new ts files from JsMacros-Examples#typescriptdev/headers
and put them in the typedef folder (really anywhere in src should work)
Project bootstrapped with typescript-webpack-starter
JSMacros typedefs taken from JsMacros-Examples
Intended to develop scripts for the JsMacros mod