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

feat: support recursive file search #17

Merged
merged 4 commits into from
Sep 12, 2022

Conversation

thwonghin
Copy link
Contributor

@thwonghin thwonghin commented Sep 11, 2022

This PR supports putting enums / mixins / models in nested folders. This is particularly helpful to separate the models by domain folders:

- models
    - auth
        - Account.model.ts
        - VerificationToken.model.ts
    - order
        - Order.model.ts
        - OrderItem.model.ts  

@thwonghin
Copy link
Contributor Author

Extend from this, I think we can allow customizing the paths with glob pattern, but that will be another PR.

And also we could define which file extensions we want to support (I guess typically .ts, .js and .mjs) and then we use some glob library to easily get all the file paths.

@ridafkih
Copy link
Owner

This is great, going to run some tests! We can absolutely support other file extensions, but you're right in that it should be another pull request. :)

@ridafkih
Copy link
Owner

Thanks so much, looks great!

@ridafkih ridafkih merged commit ea1ceac into ridafkih:main Sep 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants