-
Install nodejs, it is recommended to use chrome browser
-
npm run dev, starts development server. Rebuilds files on changes and starts http server on http://localhost:3000. To instead use https see below.
-
Edit src/myplugin/myplugin.ts
-
Open Future ordering gui, navigate to /plugins and configure name "myplugin", version "1.0.0". Let config be default value.
-
To change "myplugin" to another name, edit name of folder, name of file and change variable pluginName in build.mjs. Restart npm run dev.
-
See examples directory for examples
Some browser doesn't allow serving files from http. To enable HTTPS:
-
Install makecert
Mac: brew install mkcert
Windows: https://learn.microsoft.com/en-us/windows/win32/seccrypto/makecert
-
Make certificate
mkcert -install localhost
# The certificate is at "./localhost.pem" and the key at "./localhost-key.pem"
-
Start dev server
npm run dev-https