Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add --skip-suffix option to component generator #2166

Merged

Conversation

moekiorg
Copy link
Contributor

What are you trying to accomplish?

In particular, when using namespaces, there are cases where the suffix component is not needed, and I want to create such a component with the generator

What approach did you choose and why?

I added a --skip-suffix option that allows generating component files without the "_component" suffix, giving developers more flexibility in naming their components.

Anything you want to highlight for special attention from reviewers?

This option allows generating component files without the "_component" suffix,
giving developers more flexibility in naming their components.
@moekiorg moekiorg marked this pull request as draft November 15, 2024 10:18
@moekiorg moekiorg marked this pull request as ready for review November 15, 2024 10:23
@@ -10,6 +10,10 @@ nav_order: 5

## main

* Add `--skip-suffix` option to component generator
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Add `--skip-suffix` option to component generator
* Add `--skip-suffix` option to component generator.

@joelhawksley joelhawksley enabled auto-merge (squash) December 18, 2024 19:12
@joelhawksley joelhawksley merged commit 8b441cc into ViewComponent:main Dec 18, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants