feat(cli): Add ability to specify component generation config parameters #2427
+31
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A user can define a
prefix
andstyleFormat
parameter instencil.config.ts
to provide more flexibility when working with thestencil generate
CLI command.eg.
The toggle prompts remain the same, referencing
scss
instead ofcss
in the above example.This object is optional, with a default
app
prefix andcss
format being applied.Generated files and folders are created without the prefix within the name. Eg.
ion-button
component would create file/folder structurebutton
,button.tsx
etc.The generation command would change to:
npx stencil generate button
instead ofnpx stencil generate ion-button
Resolves:
#2303
#2347
#2348
#2396