Skip to content

A terminal utility to produce a sitemap in an expo-router project

Notifications You must be signed in to change notification settings

frankcalise/expo-router-sitemap

Repository files navigation

expo-router-sitemap

Usage

Call this script in your Expo Router project via:

npx expo-router-sitemap

Overview

Inspired by this X post by @kadikraman, I figured it would be useful to come up with a script that could check an Expo Router project.

image

Example Output

Valid

/
/[...missing]
/community
/log-in
/podcasts/
/podcasts/[id]
/podcasts/latest
/profile
/showroom

✅ No route collisions detected.

Invalid

/
 - src/app/(app)/(tabs)/index.tsx
 - src/app/(app)/index.tsx
/[...missing]
/community
/log-in
/podcasts/
/podcasts/[id]
/podcasts/latest
/profile
/showroom

❌ Collisions detected!

Development

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.1.27. Bun is a fast all-in-one JavaScript runtime.

About

A terminal utility to produce a sitemap in an expo-router project

Resources

Stars

Watchers

Forks

Packages

No packages published