O'Reilly logo

Meteor Cookbook by Isaac Strack

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a custom package

As you become more familiar with Meteor, you will want to start creating your own custom package, which consolidates the code you may find useful in multiple projects. This recipe will walk you through the basics of creating your own personal Meteor package.

Getting ready

The only thing you need for this recipe is Meteor and a text editor.

How to do it…

We will create a package that will allow us to easily write to the console in not only the client web console, but also in the server terminal console.

  1. To create a new baseline package, open a terminal window and navigate to where you would like your package to reside. Once there, execute the following command:
    $ meteor create --package [myMeteorID]:testpack
    

    Make sure you replace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required