Alex Rivera | Logout

How to build a Meteor smart package

Asked 2012-04-11T21:53:45.977
42

How can one build a Meteor smart package that would show up in meteor list?

Building Atmosphere packages is reasonably well documented, but building Meteor packages isn't.

Edit
Report

1 Answer

13

NOTE: Package development is currently undocumented, and the API will change. You've been warned!

That said, it's actually pretty easy to get started:

First, git clone a copy of the meteor repo. Make yourself a new directory in /packages. Put a package.js file in the directory (see other packages for examples). Now you've got a package!

Next, run the meteor script from your checkout (not the one installed by the installer). When run from the checkout, the script will use the local packages directory in the checkout. It will even hot-reload when you change code in your package.

Have a look through the other packages for examples and to get an idea what the API does.

EDIT: much progress has been made in terms of third-party packages. Check out http://oortcloud.github.com/meteorite/ and https://atmosphere.meteor.com/

answered 2012-04-11T22:52:02.167

Your Answer