ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.45k stars 782 forks source link

generate components using a custom boilerplate template (plop/hygen/...) #2968

Open wingleung opened 3 years ago

wingleung commented 3 years ago

Stencil version:

 @stencil/core@2.6.0

I'm submitting a: [ ] bug report [x ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior: When I change the structure of a component the CLI command to generate components will always use the default hard coded template.

Expected behavior: If stencil offers a way to generate components through a CLI, maybe we could offer developers a way to generate components using a custom boilerplate that contains their own preferred component structure.

Example project https://github.com/wingleung/stencil-plop-example

Image of stencil using plop to generate components

Question, is it a responsibility of Stencil to offer this feature? If no, should the built-in generator be in there today?

splitinfinities commented 2 years ago

Hey there, thank you for the patience getting back to you. The new team is getting started and we're working through the backlog now.

This is an awesome idea! We have to balance our workload, and we don't currently don't have the bandwidth, but if that changes this is something we'd love to consider.

ionitron-bot[bot] commented 2 years ago

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

Thank you for using Stencil!