git.iko.soy/rowtype-yoga/purescript-yoga-react-dom
on main help sign in
41 lines 1.3 kB history raw
1# Contributing
3## Running the tests:
5```sh
6# Bundle the example app
7spago -x spago.test.dhall bundle-app -m Example
8# Generate an `html` file for the example app
9spago -x spago.test.dhall test
10# Serve the example app
11npx http-server
12```
14Then visit http://localhost:8080/ which should show you the ugliest website in the world.
16## What's still missing
18### SVG
20There's no SVG yet. It would be a chore just like HTML.
22### Improved Performance
24It's bearable on my computer, but it should really typecheck faster if possible.
25I think this is related to the huge number of possible attributes and all the associated type-level shenanigans.
27I have a few ideas of how to make it faster:
29 - Improve the type-level code
30 - Speed up the compiler
31 - Provide specialised components that only accept a subset of the most common attributes and `Complete` versions that take everything.
32Most of the time one would have a better DX with the specialised components, but the `Complete` versions would still be available for the rare cases where they are needed.
34### Tests for attributes and attribute types per element
36I've only tested a few attributes and attribute types per element.
38### Even better documentation
40Some examples could be more complete copy-pasteable.
41I'm thinking of `form` and anything that may be inside it.