Let apps.json be generated by jekyll #1221
Reading espruino#1020 espruino#46 My understanding is that the requirement for a splitt apps.json solution is: - work seemlessly with github pages (no manually calling a script) - single (or at most a few) apps.json for the browser to load for the store so the store page is fast As the github pages already use jekyll to build the store page this can be solved by a minimal jekyll plugin. This is a proof of concept of that. If the concept is accepted in a next step, I will create the splitt files for mmore that just the two here.
Oh, cool. I didn't know jekyll could run standalone, figured it was just some preprocessor language for GitHub pages.
But I guess this works fine for people using GitHub pages, and if we go this way I'd be happy to look into making it work locally with just npm.
Some bikeshedding: I would prefer the per-app files being named
Thanks! So actually everything can be handled with the
I'll have to think about this as it's quite a big change, but it definitely seems to tidy things up a lot.
I'm in two minds about
I like @adamschmalhofer's solution very much.
I had another idea:
It would also be solvable via an additional branch ( e.g. gh-pages).
You can find an example here: https://github.com/BartS23/BangleApps/blob/master/.github/workflows/PreparePages.yml
Both solutions also have the possibility to leave the existing apps.json unchanged and only use the app.json/metadata.json for new apps.