-
Notifications
You must be signed in to change notification settings - Fork 286
Glob based model paths #177
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
Comments
Sounds good. I think we should implement this next. |
Hey guys. |
Using @victorivens05 What is you suggestion? |
@RobinBuschmann in my tests I managed to use glob and folder together. It should work, unless some user has a folder called The problem right now is that I work alone, so I don't have much experience working with teams. The tests seems to be working (first time I've seen a real test coverage run, pretty sick) and I don't know if I should create a branch and submit a PR. |
@victorivens05 Sounds good! Don't worry. Create your PR and we will have a look :) If there is something that need to be adjusted we can discuss that in the context of your PR. If you have any questions don't hesitate to ask. |
I just submitted the PR. I already think some stuff should be done differently. I didn't create a test, I'd like to create one, but I would need some help to figure out where and how it should be done. The README should also be changed to reflect the new changes in the code. |
Worth mentioning from this other issue thread
It might be a good idea to leave I'll defer to @RobinBuschmann tho - it will be super nice to have globs either which way imo. :D (the original request in this thread wanted glob support in modelPaths tho - /shrug ). |
@snewell92 ha, maybe I'm right with that one. We could use an option called |
In my opinion, a breaking change should only be made when there is a great benefit attached to it or there is no other way to solve a problem. The way the PR was submitted, nothing will have to change and there will be a new (altough small) feature. |
I think this PR #181 closes this issue. |
Closed due to #181 |
Some projects keep models within modules right next to controllers. Current implementation of sequelize-typescript allows to specify only path to folder with models.
What do you think about adding support for the following configuration:
The text was updated successfully, but these errors were encountered: