Skip to content

Create the CLI to generate the route.ts #3

@nico-hyperjump

Description

@nico-hyperjump

As described in https://hyperjumptech.github.io/hyperjump-web-framework/guide/api-route#the-config-file

  • The CLI should scan all route.[method].config.ts files in the current directory and its subdirectories.
  • The CLI should then validate the route.[method].config.ts files using the linter or plugin in Create linter rule or plugin to validate route.[method].config.ts #2
  • The CLI should generate route.ts file in the same directory as the route.[method].config.ts files
  • The content of the route.ts file should conform to the Next.js convention. https://nextjs.org/docs/app/api-reference/file-conventions/route
  • The CLI should use templates to generate the route.ts. The default template should be for generating route.ts for the Next.js App Router. In the future, we can have different templates for say Next.js Pages router.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions