No description
  • JavaScript 51.5%
  • TypeScript 48.5%
Find a file Use this template
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-09 15:37:50 +02:00
0.1.0 Make init async 2026-08-09 15:34:41 +02:00
scripts Switched from submodule to script to fetch polytypes 2026-08-09 15:20:43 +02:00
.gitignore Switched from submodule to script to fetch polytypes 2026-08-09 15:20:43 +02:00
manifest.json Update TS Repo template 2026-07-31 20:45:12 +02:00
package.json update dev configuration 2026-08-09 15:37:50 +02:00
README.md update dev configuration 2026-08-09 15:37:50 +02:00
tsconfig.json Switched from submodule to script to fetch polytypes 2026-08-09 15:20:43 +02:00

PML TypeScript repository template

Initial setup

install npm packages

install the npm packages with your node package manager

Fetch PolyTypes

Run npm run types to download the latest version of the PolyTypes type definition

Development

IDE

It is recommended to use an IDE with TypeScript support like VSCode or WebStorm

Testing

To test your mod, run npm run dev, then open https://w.polymodloader.com in your browser and import http://localhost:8081 as a pml mod.
Make sure to disable cache mods in PML settings.
Any changes to the TypeScript files will automatically trigger a compile, so you won't have to worry about compiling.