Open ComLock opened 1 year ago
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.
enonic project create
Another way to approach this would be to provide a enonic scaffold command.
enonic scaffold
I would also like a shorter version enonic sf.
enonic sf
It should be able to scaffold:
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
Related: https://discuss.enonic.com/t/yeoman-generator-for-enonic-xp-on-npm/910
https://www.npmjs.com/package/generator-enonic-xp
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:
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