Hello everyone.
Im currently working on a little tool called Elm-pen and i think its about time to go into a first alpha phase and ask for feedback.
What is it?
Elm-Pen lets you generate any Elm module that you want, just from a set of json values.
Why use it?
proper Enum types with all the untility functions you would expect.
No more problems with nested records. just use the generated mappers
json encoders/decoders for records an custom types.
How can i use it?
- Install it with
npm install -g elm-pen
. - Call
elm-pen
. This will generate aelm-pen.json
file and some additional folders that you can ignore for now. - Add
elm-pen/generated
to youelm.json
source directories.
In the elm-pen.json
file you can specify the Enums, records and custom types and then call elm-pen
again to generate the files.
Feedback Needed
Next time you create a new elm project, consider using elm-pen. I personally noticed that I’m getting the most out of it by generating my model with it.
But what do you think?
How does it help your project?
Are there any feature you are missing?
Would you use it a second time?