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

Snippets / CLI generator #29

Open
patroza opened this issue Oct 22, 2024 · 1 comment
Open

Snippets / CLI generator #29

patroza opened this issue Oct 22, 2024 · 1 comment

Comments

@patroza
Copy link
Member

patroza commented Oct 22, 2024

Motivation

There are many repeating patterns in defining new resources/controllers/actions and models in general,
having snippets at the ready, and perhaps even a generator (via CLI, and perhaps other integrations), like other frameworks are doing (Rails for instance), could boost productivity.

Ideas

  • Anything AI'y we can do?

Areas

  • [not existing] Controllers+Resources skeleton
    • creates controller file with [name] and basic skeleton
    • creates resource file with [name] and meta moduleName codegen
  • [existing] Add Resource action + Controller action
  • [not existing] New Model file (including the model codegen for the From interfaces)
  • Model definitions S.ExtendedClass, S.TaggedClass
  • Service definitions Effect.Service
@patroza
Copy link
Member Author

patroza commented Nov 3, 2024

Snippets improved in 85d5bbf
Sync command added in CLI in effect-app/libs@4728346

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

No branches or pull requests

1 participant