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

Group generated types #57

Open
bdunogier opened this issue Nov 5, 2018 · 1 comment
Open

Group generated types #57

bdunogier opened this issue Nov 5, 2018 · 1 comment
Milestone

Comments

@bdunogier
Copy link
Owner

Add support for grouping of types in the schema generator. For now, it generates one file per type. It could be lowered by grouping items:

  • all content types in one file
  • all types (domain content, content type, inputs, connection...) from a Domain Content Type in one file: ArticleContent.types.yml, BlogPostContent.types.yml
  • blocks in one file

With this, the amount of files should remain manageable.

@bdunogier bdunogier added this to the 0.4 milestone Nov 5, 2018
@bdunogier
Copy link
Owner Author

Could be done in the Builder layer, as we have one per domain item: DomainContentSchemaBuilder, PageSchemaBuilder, FormSchemaBuilder...

It still requires that the command is aware of that structure, and is able to distinguish it from the actual types.

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