Getting Started
Prerequisites
Section titled “Prerequisites”Make sure you have Rust installed and cargo
available in your terminal.
Install the TilePad CLI:
cargo install tilepad-cli
Create a Plugin
Section titled “Create a Plugin”Scaffold out a new plugin with:
tilepad create
TilePad provides templates and libraries for Javascript
, TypeScript
, and Rust
however any language that can compile
to a native binary or that can be run by NodeJS can be used with TilePad, provided that you manually implement
the TilePad websocket protocol.
Link Your Plugin to TilePad
Section titled “Link Your Plugin to TilePad”To speed up local development and prevent yourself from having to continuously rebuild and install your plugin. You can use the following command from within your plugin folder to link your development plugin folder with TilePad.
tilepad link
Reload Plugins Without Restarting
Section titled “Reload Plugins Without Restarting”If you make changes to your plugin manifest and want TilePad to pick them up without restarting the whole app you can use the following command:
tilepad reload-plugins
Bundle for Distribution
Section titled “Bundle for Distribution”When your plugin is ready for distribution. Ensure anything that should be included within your plugin is present within the .tilepadPlugin
folder (This includes your build artifacts, the plugin templates have this directory structure setup for you by default)
Run the following command to bundle your plugin into a .tilepadPlugin
file:
tilepad bundle