npm install -g nodemon
npm install -g eslint
npm install
- Open 3 terminal windows / tabs
- Run
npm start
in the 1st terminal tab - Run
npm run start-webpack
in the 2nd terminal tab (this automatically builds the development version of your custom tile) - Run
npm run start-webpack-dist
in the 3rd terminal tab (this automatically builds the compiled distributions)
- Kill any running processes if needed.
- Edit
tiles.json
and add a new entry with anid
,name
, andshortName
. Theid
must be unique. - Create a new JavaScript file in
./src
with the same name as theid
intiles.json
. (Feel free to duplicate an existing tile to get started). - Start the studio again (see "Running the Studio").
As you build and test your tiles locally, the tile bundle will be automatically generated by webpack. Once all of the desired functionality has been completed, simply send the bundle over to the Tiled team.
- Check the
dist
directory for your new folder (matching the name of your tile) - Send the following items over to the Tiled development team by emailing us at [email protected]:
tiles.json
(with your new tile additions)- Raw custom tile source (
src/yourNewTile.js
) - Built directory under the
dist
directory to the Tiled team (dist/yourNewTile
)