-
Notifications
You must be signed in to change notification settings - Fork 2
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
How about a unified adapters project? #1
Comments
Hey @jesseclark, I initially thought that's a great idea, but then on reflection realised that it's no benefit to consumers, it's just an aid to our natural inclination to laziness :) I want to stick to the Node ethos of small packages that do one thing. However you're right that the tests generally do the same thing, so we could definitely create a suite of tests that adapter modules can I use. I'm thinking that factory-girl should provide this, so you could I'll set this up for the adapters that I've authored and push a new version which you can use. |
Hi there, I've pushed some new stuff regarding this. See the example |
I am ok with this approach too. It reduces code duplication without adding unnecessary dependencies to user's projects. When I get a minute, I will integrate the adapter-tests and publish my Mongoose adapter. I'll also update the README and maybe create a Wiki page for keeping track of adapter projects. |
Yeah a Wiki for adapter authors is a great idea. We can use npmjs.org for the list of adapters using the keyword |
Hi there.
I just converted the JugglingDB adapter in to a Mongoose adapter. There were only very minor code changes required to accomplish this task.
I could go ahead and clone your project and change the name and modify the tests for the adapter I created and publish it. However, it occurs to me that the tests for each new adapter are basically going to be identical except for the names. Perhaps it would make sense to create one
FactoryGirlAdapters
project that consolidates all the adapters in one repo?We could have the module expose adapters like:
@aexmachina Would you be interested in adding the adapters you have created to such a project if we get one going?
The text was updated successfully, but these errors were encountered: