Tune in to the tools and techniques in the Elm ecosystem.
031: Elm Code Generation
May 24, 2021
1:07:18
64.64 MB
Downloads: 0
What's the source of truth?
Teach the Elm compiler about external things like schemas
Macros in other languages
Vanilla code generation can be inspected and debugged like plain handwritten code
Gitignore gen code so you know you didn't forget to generate it on the build server
Watchers for rerunning codegen
Rerun code gen when the source of truth changes ideally
The Design of Everyday Things by Donald Norman
Affordances
Mappings
Scaffolding
elm-review init
,new-rule
, andnew-package
elm-spa new
- html-to-elm.com
- End to end testing your generated code
- Snapshot testing
elm-graphql
's snapshot testing script- html-to-elm.com generated test suite
elm-verify-examples