- npm install -g nodemon
- npm install -g eslint
npm install
- Open 3 terminal windows / tabs
- Run npm startin the 1st terminal tab
- Run npm run start-webpackin the 2nd terminal tab (this automatically builds the development version of your custom tile)
- Run npm run start-webpack-distin the 3rd terminal tab (this automatically builds the compiled distributions)
- Kill any running processes if needed.
- Edit tiles.jsonand add a new entry with anid,name, andshortName. Theidmust be unique.
- Create a new JavaScript file in ./srcwith the same name as theidintiles.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 distdirectory for your new folder (matching the name of your tile)
- Send the following items over to the Tiled development team by emailing us at dev@tiled.co:
- tiles.json(with your new tile additions)
- Raw custom tile source (src/yourNewTile.js)
- Built directory under the distdirectory to the Tiled team (dist/yourNewTile)