Skip to content

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

@wingleung

Description

@wingleung

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Want this? Upvote it!This PR or Issue may be a great consideration for a future idea.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions