问题
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