What's the difference between Meteor and Meteorite (mrt)?

三世轮回 提交于 2019-12-06 17:15:11

问题


For example, some sites tell me to use mrt add accounts-ui (using Meteorite, right?) and others say meteor add accounts-ui.

From what I understand, Meteorite is just a version control / package manager. Is this correct? What is the difference between the two commands above?


回答1:


Update

Meteor 0.9 release rendered Meteorite and the mrt command obsolete. All new projects should use meteor add only.

Original answer

meteor add works only for packages issues officially by the Meteor team (here's the list). mrt add is a wrapper that works also for all community packages available from atmosphere.




回答2:


They are the same now https://github.com/oortcloud/meteorite/

"NOTE: As of Meteor 0.9.0, Meteorite is no longer required! You can now install Atmosphere packages directly via the meteor tool."




回答3:


You're right, Meteorite is a packaging system for Meteor. The repository of Meteorite is Atmosphere. It's like a "composer" system with a packagist repository for the PHP language.

So, when you do a "meteor add", you only use the package delivered with the Meteor installation. But with "mrt add", you will be bound to the Meteor original package, like meteor add, or to an Atmosphere repository for all other packages. Finally, because everybody use Meteorite, you just have to use the "mrt" command.



来源:https://stackoverflow.com/questions/18227920/whats-the-difference-between-meteor-and-meteorite-mrt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!