-
Notifications
You must be signed in to change notification settings - Fork 7
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
Should not throw when non mondule-unification directories are added #8
Comments
@chadhietala Where was the directory created? If it was within |
@rwjblue How does one add a directory for say Redux reducers? As of today it won't be watched and basically makes experimentation very difficult if the answer is "write a custom Broccoli thing". That is a barrier to entry that we likely need to remove. |
You put files that will be used via |
Also, if you want to register custom types / collections, you can add your own However, this currently overrides (rather than merges with) the defaults, so it would need to be complete. We should consider a merge strategy too, since that will probably be used most often. |
BTW, here is the default module configuration: https://github.com/glimmerjs/glimmer-application-pipeline/blob/master/lib/broccoli/default-module-configuration.ts |
And the structure is defined in glimmer-resolver: https://github.com/glimmerjs/glimmer-resolver/blob/master/src/resolver-configuration.ts |
As a regular joe userland person, I was confused by this error. I opened an issue on glimmer-application because I wasn't sure why I couldn't add an arbitrary file to my glimmer project. There's nothing stated in the docs (as far as I could tell) that instructs me to avoid doing so. |
I hit this, too. This would be a great place to mention this: https://glimmerjs.com/guides/filesystem-layout I don't know if this is a convention from the ember ecosystem but it makes it harder for new folks to build. The framework itself is very impressive. I was duly shocked at the performance and build size but a guide on how to import your own modules is helpful. Not knowing ember's DI this is the example I have found from @toranb: https://github.com/glimmer-redux/glimmer-redux-example/blob/master/config/environment.js Right now I am attempting something like the below. [edit] Turns out it can be simplified a bit more. Adding
|
If you try to add a directory to the module unification file structure it should not throw. Currently if you write some TS file and import it into the a MU directory an error is thrown:
The text was updated successfully, but these errors were encountered: