Skip to content

Refactor and add unit testing #7

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

Open
wants to merge 122 commits into
base: main
Choose a base branch
from
Open

Conversation

suhaotian
Copy link
Contributor

@suhaotian suhaotian commented Feb 23, 2025

The goals:

  • Refactor code
  • Export API SDK: Support ESM and CommonJS
  • Export API SDK: Support generating Vue Query hooks (Currently, supports SWR and React Query)
    • Support generating multiple platform hooks at the same time
    • Add Solidjs and Svelte TanStack Query support
  • Use script to extract API info from *.apiconf.ts (before using tsc to build JS from TS first then require, and it's slow)
  • Unit testing
    • tsdk
    • tsdk-server-adapters
    • tsdk/fe-sdk-template
  • Support valibot / zod/v4 / arktype with https://github.com/standard-schema/standard-schema
  • Export API SDK supports running on Web Workers
  • [ ] tsdk-server-adapters: more convenient setup API
  • E2E testing
    • Different bundlers and frameworks: Vite / Webpack / Next.js / Remix (React Router)
    • Different adapters: Express / Fastify / Hono / Socket.io
    • Hooks tests: SWR / Vue Query / React Query / Solidjs / Svelte
  • [ ] Export API SDK: OpenAPI documentation generated
  • make unit tests and e2e tests make sense
  • [ ] Experiment: switch nest-cli to vite keep nest-cli
  • Better API SDK documentation
  • Better documentation
  • AI-friendly

@suhaotian suhaotian changed the title Refator and add unit testing Refactor and add unit testing Feb 24, 2025
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