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.
- 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
[myMeteorID]
with your own Meteor Developer Account ID or with the ID of the Meteor organization you belong to, for example (and for the rest of this chapter), we will use thepacktmeteor
organization. So our command will look like the...