Since Phaser v3 is the land of configurations and descriptors I think a descriptor file for the examples will be very helpful for tools.
For example, you can say that all the examples are placed in its own folder, like this:
examples/
assets/
scripts/
load an image/
play a sound/
But each example will have an example.json file with some useful information about it:
example.json:
{
name: "Load an Image",
assets: [
"images/einstein.png"
],
scripts: [
"load an image.js"
]
updated: "1/1/2018"
}
This descriptor file allows tools to parse the examples and provide operations like run the example, download it, start a project based on it, etc...
For example, in the current site
http://labs.phaser.io you can edit an example but also download it. However, the download only includes the script file, not the assets, so it is not going to work in localhost. So a descriptor file allows tools to rebuild all the examples automatically and generate zip files with the assets and the scripts, so the user can download the complete example.
Best regards,
Arian