Is Meteorite still relevant now that Meteor 0.6.0+ supports npm packages?
Asked Answered
H

3

14

Since Meteor 0.6.0+ supports npm packages directly, is Meteorite still relevant, and would there be any advantage/disadvantage to using it?

Heaveho answered 10/4, 2013 at 3:41 Comment(1)
This question is out of date. Meteorite is now part of Meteor. See github.com/oortcloud/meteoriteChristianechristiania
O
9

Meteorite is still relevant at this point. Even though NPM packages are supported in meteor there isn't a community repo to add packages from (http://atmosphere.meteor.com)

Even though NPM modules can now be added they still need to be made to work with meteor.

Meteor code uses fibers to allow sync code to run so each NPM module being used still needs a package to let it be used in meteor which can make it easier to use (by allowing fibers code to be used in a project) with minor editing. Currently these packages have no other community place to go besides the atmosphere repo.

Openmouthed answered 10/4, 2013 at 5:49 Comment(0)
S
17

Meteorite is definitely still relevant and recent talks from meteor team indicate it will be folded into meteor itself eventually.

Meteorite does more than NPM, it also takes client side 3rd party libraries and specifies how they get integrated into a meteor app. In this aspect it serves the same purpose as yeoman/bower. 3rd party client side libraries like x-editable, sugar.js, moment.js, etc dont really belong in NPM, but you also shouldnt have to manually incorporate them into your meteor project either. See this comment from the meteor team: https://github.com/meteor/meteor/pull/516#issuecomment-12919473

Meteorite doesnt provide the full functionality of NPM. With just meteor, you cant just require a NPM package in your app and use it, even in 0.6.0+ you still have to make a package and an api wrapper. If you wanted to use a certain NPM and it was already wrapped and shared on meteorite, that would in effect provide a NPM 'proxy' via a meteorite package. Like this package https://atmosphere.meteor.com/package/ncp

I would suggest using meteorite for the capabilities you gain beyond meteor itself. However, be aware that this is an area in great flux so you may have to rework/adjust your project in the near term. IMO if you are building more than simplistic apps, you'll definitely want meteorite for the ease of incorporating 3rd party libraries.

Sebiferous answered 10/4, 2013 at 13:54 Comment(0)
O
9

Meteorite is still relevant at this point. Even though NPM packages are supported in meteor there isn't a community repo to add packages from (http://atmosphere.meteor.com)

Even though NPM modules can now be added they still need to be made to work with meteor.

Meteor code uses fibers to allow sync code to run so each NPM module being used still needs a package to let it be used in meteor which can make it easier to use (by allowing fibers code to be used in a project) with minor editing. Currently these packages have no other community place to go besides the atmosphere repo.

Openmouthed answered 10/4, 2013 at 5:49 Comment(0)
S
3

Now you can have full access to NPM.

Just do meteor add meteorhacks:npm

See my article: Complete NPM Integration to Meteor

Sukkoth answered 15/6, 2013 at 14:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.