lustre-labs / lustre

An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam!
https://hexdocs.pm/lustre
MIT License
737 stars 52 forks source link

✨ Respect included `index.html` or `index.js` if available. #58

Closed hayleigh-dot-dev closed 3 months ago

hayleigh-dot-dev commented 3 months ago

The CLI has commands for building applications or starting up a development server. Currently these only look at the project's main Gleam file but there are scenarios where a user might want custom startup logic in an index.js or want to customise the HTML shell with a custom index.html.

Our tooling should automatically respect these files if they exist.

hayleigh-dot-dev commented 3 months ago

Partially complete. Allowing a custom index.js is actually quite involved and beyond the scope of the Lustre CLI at the moment, so closing for now!