Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Next.js Support to ts-codegenerator #12

Merged
merged 7 commits into from
Jul 23, 2024
Merged

Conversation

ozhanefemeral
Copy link
Owner

This PR introduces Next.js-specific features to our ts-codegenerator package, enhancing its capabilities for Next.js projects.

Key Features:

  • Next.js Types: Added ServerActionInfo and NextCodebaseInfo types.
  • Codebase Scanning: Implemented scanNextjsCodebase for analyzing Next.js projects.
  • Source File Analysis: Created analyzeNextjsSourceFiles for processing in-memory source files.
  • Code Generation: Added generateServerAction for creating Next.js server action code.

- Add Next.js specific types, scanner, and generator
- Update root index.ts to use consistent export strategy
- Add new function `analyzeNextjsSourceFiles` to handle the source files
- Update `scanNextjsCodebase` to call `analyzeNextjsSourceFiles` and return the result
- Add tests
- Update imports
Copy link

vercel bot commented Jul 22, 2024

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

Name Status Preview Comments Updated (UTC)
visual-ts ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 10:31pm

@ozhanefemeral ozhanefemeral merged commit 6ebd3fc into main Jul 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant