Closed jspenger closed 1 year ago
We should discuss this further, but it would make sense to put the examples in a directory portals/portals-js/src/main/resources/examples
, one example per file.
For testing purposes: we could consider to run one test which executes each file and checks if they execute without errors. For CI purposes: we could check that the tests all complete, and automatically update the examples on the playground.
There are currently no (or very few) examples for PortalsJS. It would be a good idea to port some of the suitable Portals Scala examples to PortalsJS for two reasons: 1) this way we can test the PortalsJS API and runtime; and 2) we can integrate them into the playground.
For this, I suggest the following: