ElMassimo / iles

🏝 The joyful site generator
https://iles.pages.dev
MIT License
1.07k stars 31 forks source link

Feature: Ability to name islands #140

Closed dhruvkb closed 2 years ago

dhruvkb commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently the islands are named in a very non-descript way like "App 2":

Screenshot 2022-06-24 at 2 25 09 PM

This is fine for smaller applications with few islands but as the number of islands grows it'll be hard to keep track of islands by a number.

Describe the solution you'd like

A good solution would be to provide a way to name the individual islands.

Describe alternatives you've considered

If a custom name API would be infeasible, the next best thing would be to name the island after the component it encapsulates.

ElMassimo commented 2 years ago

Being able to specify a custom name would require extending the transform logic, which is already complex.

I like the suggestion of naming them after the components, I've implemented auto-inferred names in #141.