Skip to content

Conversation

tom-sherman
Copy link
Contributor

@tom-sherman tom-sherman commented Nov 6, 2024

This is the first PR in a series to migrate us to be "lexicon-first". In that we define our types in atproto lexicon DSL and then generate the types, schemas, and API clients from that. We've had the lexicons defined for a while although this PR updates lex-cli and regenerates the client code, meaning you can ignore the diff on the files in packages/frontpage-atproto-client/src/.

This PR also changes the frontpage-atproto-client package to be built, this matches how lex-cli is used within the atproto repo and gets around some weirdness in it's codegen output with regards to some imports including .js file extensions - Next.js compiler can't handle these so we let TypeScript build the packages.

Important

This changes the local dev workflow slightly, I've updated the readme to reflect. Basically just run turbo run dev instead of pnpm run dev for frontpage.

I'm going type-by-type with the end goal of basically removing all of our frontpage-specific code in the lib/data/atproto folder.

This work is a kind of a pre-requisite for implementing #232 as it makes the refactor way safer.

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontpage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2025 10:41am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
atproto-browser ⬜️ Skipped (Inspect) Apr 17, 2025 10:41am
unravel ⬜️ Skipped (Inspect) Apr 17, 2025 10:41am

@vercel vercel bot temporarily deployed to Preview – atproto-browser April 17, 2025 10:40 Inactive
@vercel vercel bot temporarily deployed to Preview – unravel April 17, 2025 10:40 Inactive
@tom-sherman tom-sherman merged commit ecc8b92 into main Apr 17, 2025
11 checks passed
@tom-sherman tom-sherman deleted the lexicon-first-post branch April 17, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation frontpage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant