@baleada/source-transform-files-to-routes

Transform function, compatible with Baleada Source Transform, to replicate Nuxt/Next/Sapper functionality of generating routes based on file and directory structure

Usage no npm install needed!

<script type="module">
  import baleadaSourceTransformFilesToRoutes from 'https://cdn.skypack.dev/@baleada/source-transform-files-to-routes';
</script>

README

@baleada/source-transform-files-to-routes

Transform files and directory structures into SPA routes for React Router or Vue Router. In other words, imitate the functionality of the Nuxt.js, Next.js, and Sapper "pages" directory in your app.

Designed to be used with Baleada Source Transform.

See the docs for more guidance.