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

[Feature Request] mix salad.add generates components with a Components module prefix not Component #141

Open
oliverswitzer opened this issue Jan 23, 2025 · 0 comments

Comments

@oliverswitzer
Copy link

A bit of a small request, but something I noticed when using mix salad.add the other day

Right now it looks like when we generate new components--for example mix salad.add card--it generates a component in in lib/app_web/components/... (note the plurality of components). However, the module itself that's generated has Component in its module definition.

defmodule AppWeb.Component.Card do
...
end

Should we align the plurality so that it generates AppWeb.Components.Card instead of AppWeb.Component.Card in order to match the directory structure lib/app_web/components/...?

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

No branches or pull requests

1 participant