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

[suggestion] components TS source and HB template filenames #47

Closed
loicraux opened this issue Mar 30, 2017 · 1 comment
Closed

[suggestion] components TS source and HB template filenames #47

loicraux opened this issue Mar 30, 2017 · 1 comment

Comments

@loicraux
Copy link

loicraux commented Mar 30, 2017

Do we have to name all components TS files component.ts and all components HB template files template.hbs ?
This is not practical when searching for the source file of a given component in IDEs... It would be more practical if the files were named like this : MyComponent.ts and MyComponent.hbs, under a MyComponent folder.
Otherwise with the current recommandation(?) you end up with N files all named component.ts/template.hbs....

@acorncom
Copy link
Member

@loicraux yes, naming needs to go as indicated in the docs. Naming approaches were discussed and debated fairly thoroughly as part of the original file layout discussion here: emberjs/rfcs#143

It is possible to override and alter the resolver to get custom behavior, but that might lead to other difficulties down the road, so I generally don't recommend it ... 😀

Will close this issue for now

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

2 participants