Code Monkey home page Code Monkey logo

Comments (9)

maxnowack avatar maxnowack commented on May 18, 2024 1

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.

gaurav- avatar gaurav- commented on May 18, 2024 1

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.

theodorDiaconu avatar theodorDiaconu commented on May 18, 2024

Do you have an example of an npm package that is specifically built with Meteor + also has tests built-in ?

from redis-oplog.

maxnowack avatar maxnowack commented on May 18, 2024

I'll build one ;)

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 18, 2024

how would we tackle package dependencies ? I believe that's the main issue.

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 18, 2024

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.

theodorDiaconu avatar theodorDiaconu commented on May 18, 2024

Amazing. It's really good, so the only advantage for moving to npm is to offer support for 1.2.x ?

from redis-oplog.

maxnowack avatar maxnowack commented on May 18, 2024

mainly yes, but it also feels like atmosphere is deprecated.

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.