We’re working on an Elm integration for Astro, and things are looking pretty great so far! We’re planning to release it in a few days (if everything goes as planned).
We found 2 ways to structure the Elm code:
The elm.json file is placed at the root of the project (with source-directories set to src/components) and your Elm files residing in the components folder.
Have an elm folder on the same level as the components folder, containing all your Elm-related files including elm.json, src, tests, etc.
Option 1 is more Astro-like, while option 2 is more Elm-like. Which one would you prefer?
Personally I’d prefer an elm.json file at the root, with the option to define my own source-directories. But shouldn’t the users be able to control where the elm.json lives?