A starter template for creating melonJS plugins, built with esbuild and TypeScript.
Clone or fork this repository
Install dependencies:
npm installUpdate
package.jsonwith your plugin name and descriptionImplement your plugin in
src/index.js
npm run build
The generated files will be in the dist/ directory:
index.js— ES module bundleindex.d.ts— TypeScript declarations
Update the name, description, and version fields in package.json, then:
npm publish
src/
└── index.js # your plugin entry point
scripts/
└── build.ts # esbuild configuration
dist/ # generated output (gitignored)
The template extends plugin.BasePlugin from melonJS. See the plugin API docs for available hooks and methods.
