File structure is confusing when generating new component with namespace.
Opened this issue · 1 comments
namiwang commented
Say I'm developing an app named my-app
and I want all its components are under the same namespace.
rails g polymer:component my-app/my-button
would generate:
app/assets/components/my-app/my-button
app/assets/components/my-app/my-button/my-app/my-button.html
app/assets/components/my-app/my-button/my-app/my-button.js
app/assets/components/my-app/my-button/my-app/my-button.css
The last subfolder seems a little needless, shouldn't it be something like the following?
app/assets/components/my-app/my-button
app/assets/components/my-app/my-button/my-button.html
app/assets/components/my-app/my-button/my-button.js
app/assets/components/my-app/my-button/my-button.css
alchaplinsky commented
@NanoWang Well, I haven't thought about generating namespace/component-name
components.. But sure, if you want to put it in some namespace (directory), then gem generator should support that.