enonic / cli-enonic

GNU General Public License v3.0
41 stars 2 forks source link

Scaffolding #441

Open ComLock opened 1 year ago

ComLock commented 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.

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

ComLock commented 1 year ago

Related: https://discuss.enonic.com/t/yeoman-generator-for-enonic-xp-on-npm/910

ComLock commented 1 year ago

https://www.npmjs.com/package/generator-enonic-xp