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

How to include in an ember-tools project #35

Closed
fibble opened this issue Jan 5, 2015 · 6 comments
Closed

How to include in an ember-tools project #35

fibble opened this issue Jan 5, 2015 · 6 comments

Comments

@fibble
Copy link

fibble commented Jan 5, 2015

Hi,

Im going to implement findQuery() in ember-pouch but the project I need to use it in is being built using ember-tools (which is based on commonJS) and the build process is complaining of missing include files which i cant find in the ember-pouch or relational-pouch repos.

e.g. Error: Cannot find module './reject'

Could anyone suggest the best way to include ember-pouch, relational-pouch and pouchdb in an ember-tools project?

cheers

@stefanpenner
Copy link

Just a heads-up ember-tools isn't really supported or maintained anymore. We recommend ember-cli which is actively maintained, and will become part of ember 2.0 official offering.

That being said, the CJS output of this project should work correctly for your usecase.

@fibble
Copy link
Author

fibble commented Jan 5, 2015

Hey,

Yeah we have an outstanding task to migrate to ember-cli.

Ive used the cjs files but hit some problems with missing require()' files..

@nolanlawson
Copy link
Member

Sounds cool, although I think findQuery should probably be implemented over in relational-pouch first.

I've actually been meaning to ask some Ember folks about what they would recommend for that. CouchDB map/reduce doesn't fit very neatly into most findQuery implementations I've seen out there, so I'm not really sure how it should be written.

@nolanlawson
Copy link
Member

ooh actually this would be a good time to start tying this into the CouchDB 2.0 query language plugin I've been working on: https://github.com/nolanlawson/pouchdb-indexes

@nolanlawson
Copy link
Member

related to pouchdb-community/relational-pouch#3

@rsutphin
Copy link
Collaborator

Since we're not supporting the CJS version anymore, I think this issue is moot. (Querying is being tracked in #7.) Please let me know if I'm mistaken and there's something else I can help with.

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

4 participants