zaydek / retro-legacy

[WIP] Your friendly neighborhood React static-site generator
MIT License
2 stars 0 forks source link

[Todo] Unit tests getPageSrcs #6

Closed zaydek closed 3 years ago

zaydek commented 3 years ago

Not yet documented.

Notes to self: each.endsWith(".tsx") should probably work for js,ts,tsx.

zaydek commented 3 years ago

We should model a filesystem using getPageSrcs and makes sure it works. The important cases to consider are nested routes, possibly routes with the same names as folders (should probably error? Or maybe this is OK but is delimited using /?).

zaydek commented 3 years ago

This should be pretty well-behaved by now. Closing for now.