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

Scaffolding #441

Open
ComLock opened this issue May 22, 2023 · 2 comments
Open

Scaffolding #441

ComLock opened this issue May 22, 2023 · 2 comments
Labels

Comments

@ComLock
Copy link

ComLock commented May 22, 2023

We have a number of starters, and it's an ongoing discussion what level of code examples a starter should include, if any.

We could add some extra questions to enonic project create to checkbox what code examples to include.

Another way to approach this would be to provide a enonic scaffold command.

I would also like a shorter version enonic sf.

It should be able to scaffold:

  • admin/tool (with example routing)
  • admin/widgets/contextPanel (with example routing?)
  • admin/widgets/dashBoard (with example routing?)
  • admin/widgets/menuItem (with example routing?)
  • assets/react?
  • errorHandlers?
  • services
  • services/customSelector?
  • site/contentType
  • site/layout
  • site/mixin
  • site/page
  • site/processor
  • site/part
  • site/x-data
  • static/react?
  • tasks
  • webapp (with example routing)

Perhaps start with the most used, and add more later?

enonic sf part myPart

Would create
src/main/resources/site/parts/myPart/myPart.xml
src/main/resources/site/parts/myPart/myPart.ts

Perhaps an option to include a thymeleaf template or not?
src/main/resources/site/parts/myPart/myPart.html

Perhaps an option to provide "legacy" code instead of typescript ?
src/main/resources/site/parts/myPart/myPart.js

@ComLock
Copy link
Author

ComLock commented May 22, 2023

@ComLock
Copy link
Author

ComLock commented May 22, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant