Use meteor globals inside of npm packages (incl. testing)

I’m pretty sure that the most people are knowing this pattern to use global variables of meteor packages.
I’ve created a npm-package for convenience, to get the globals and also installing atmosphere dependencies: https://github.com/maxnowack/meteor-globals

With this helper package, it should be very easy to move atmosphere packages over to npm even if there are some dependencies on meteor packages.
Another challenge was to setup testing npm packages with meteor dependencies. I’ve created some kind of boilerplate to solve this: https://github.com/maxnowack/meteor-npm-package

1 Like

I’ve just released a new version of meteor-globals which enables depending on specific package versions.
@sashko I’ve just listened to the latest episode of transmissions, where you mentioned the problem of npm packages that are depending on meteor packages. What do you think about this approach?