Comments (9)
Here it is: https://github.com/maxnowack/meteor-npm-package
It uses this small package to get globals from meteor: https://github.com/maxnowack/meteor-globals
I think the easiest way to depend on a meteor package would be, to check if the package is there and otherwise log a message, throw an exception and kill the process. What do you think?
from redis-oplog.
Just a note that merely moving to npm doesn't automatically mean support for 1.2.x. It would also depend on not using any of the Meteor core or packages APIs that are not available in 1.2.x. That would be difficult to control since versions of Meteor packages cannot be controlled through NPM. We might have to rely on unit tests. But I'd worry about it only after the move to npm is complete.
@maxnowack nice initiative with meteor-globals
!
For unit testing, there already seems to be supporting packages like https://github.com/Astrocoders/meteor-mocks and https://github.com/meteor-velocity/meteor-stubs. I haven't used them personally though.
from redis-oplog.
Do you have an example of an npm package that is specifically built with Meteor + also has tests built-in ?
from redis-oplog.
I'll build one ;)
from redis-oplog.
how would we tackle package dependencies ? I believe that's the main issue.
from redis-oplog.
actually we only depend on : dburles:mongo-collection-instances really, and I use it just to get the collection by a name, I believe that can be solved.
from redis-oplog.
Amazing. It's really good, so the only advantage for moving to npm is to offer support for 1.2.x ?
from redis-oplog.
mainly yes, but it also feels like atmosphere is deprecated.
from redis-oplog.
Since this project is meteor related and does not work with the whole ecosystem, until Atmosphere is deprecated it makes no sense to put it to npm. It will lead to unecessary overhead.
from redis-oplog.
Related Issues (20)
- what exactly happens if you set `pushToRedis: false` on an update? HOT 3
- redis in write-only/unsubscribed state after reconnect?
- Possible inefficiency on reconnect
- Reactivity bug in fairly specific situations HOT 7
- Meteor.userId can only be invoked in method calls or publications. HOT 2
- Check failed: IsFeedbackVector() HOT 1
- Sometimes missing redis events? HOT 2
- collection.update with options.upsert set to true is returning an object rather than a number
- Specifying SSL/TLS certificates for MongoDB Encrypted connections HOT 1
- Error Exception in onStop callback: TypeError: Cannot read property 'stop' of undefined HOT 1
- SyntheticMutator does not apply globalRedisPrefix setting HOT 1
- Direct channels do not respect collection level namespace configuration
- Not working under PM2 Cluster HOT 1
- Meteor v2.6 support ([email protected])
- Is there a way to gradually migrate individual collections to redis oplog HOT 1
- How to run REDIS on a separate server? HOT 2
- Using new meteor mongo async api HOT 9
- Redis oplog connects and disconnects all the time HOT 1
- Exception when a modifier with undefined values is used HOT 2
- Inserts with callbacks are not actually async HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-oplog.