-
- Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
Describe the problem
Have come to the view that src/routes is suboptimal naming. It downplays the centrality of that folder, and makes you think about 'routing' even if your app has no routes (or e.g. you're brand new to web dev and are tinkering with Svelte for the first time, and don't yet even know what that word means in this context).
By contrast, src/app/index.svelte almost announces itself as the root of your app.
It has appealing aesthetic qualities as well:
appandlibhave a pleasing symmetry — both three letters, withappcoming first, andlibcoming later when you need it- in the same way that
$libpoints to the contents of yourlibfolder, the$app/*imports are essentially a reification of your app. it makes sense that$app -> src/appand$lib -> src/lib - 'app root' is nicer to say than 'root route'
- it's more compact, and we like things that are compact
Describe the proposed solution
We'd need to
- change the default option here
- update the templates
- (optionally) detect the presence of a
src/routesdirectory and invite people to either a) change the defaultkit.files.apptosrc/routesor b) preferably movesrc/routestosrc/app
Alternatives considered
Keeping things as they are
Importance
nice to have
Additional Information
No response
dummdidumm, adamjkb, TheOnlyTails, iamyuu, tbdrz and 27 moreHenrijsS, mohamadHarith, tropicaaal, serchavalos, Mlocik97 and 6 moretbdrz, maku, keithharvey and slinleemquandalle and Azarattum