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

Nested Drivers #30

Open
eanders opened this issue Jul 2, 2020 · 1 comment
Open

Nested Drivers #30

eanders opened this issue Jul 2, 2020 · 1 comment

Comments

@eanders
Copy link

eanders commented Jul 2, 2020

We've begun using drivers in our application and are loving the modularity of it. As our use grows we've begun wondering how hard it would be to allow for drivers to be nested one layer deeper without needing to combine multiple drivers into one. For example, we have multiple "populations" which make sense to keep together, but are each individually their own driver.

Is this something that would be difficult to implement within the existing architecture? So that you could have:

drivers/populations/veterans
drivers/populations/adults
...
drivers/other_random_driver

Maybe a check to see if there's an app folder within the top level?

@Resonious
Copy link
Member

Hey, thanks for the suggestion! I think it's a good idea, and we might also get some value out of a system like that in the near future.

Right now, we use a lot of simple globs that look like "drivers/*" or "drivers/*/config/..." etc. for setting up things like RSpec and Webpack. I'm thinking we'll want a library function like RailsDrivers.each { |name, path| ... } (and an equivalent in JS) to use instead. That's the only hairy part, implementation-wise as far as I know right now.

I'll update this issue if we come up with something!

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