Skip to content

Generator system #4990

@thetutlage

Description

@thetutlage

The generator system will be used to create types for various things. It includes

  • Scanning Inertia pages and creating a types file for them. This action should run anytime a file is changed inside the inertia/pages directory.
  • Creating types for registered routes. This action should run every time the HTTP server is restarted (so we can use the start method from the providers)
  • Creating the frontend routes client for creating URLs. This action should run every time the HTTP server is restarted.
  • Creating an index file with lazy imported controllers. It will cleanup the imports inside the routes file. This action should run anytime files are changed inside the controllers directory with the ability to specify a custom source for controllers.
  • Creating types for HTTP transformers. This action should run anytime a file is changed inside the app/transformers directory.

Updates

Related commits and PRs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions