In this post, I create and publish a simple Meteor Package.
1. Create package
meteor create --package creates a default package.
A Meteor Developer Account is needed in order to run this command
remy is my Meteor Developer Account.
color-hex-rgb is the package name.
color-hex-rgb.js is created. I implement 2 functions: hexToRgb and
package.js, the public functions are declared in Package.onUse:
In this section, I only test the package in a simple meteor app.
- I create a new app color-hex-rbg-test
- In color-hex-rbg-test, I create the
packagesfolder and link with an absolute path my package
- I add my package to the app
A single command publishes the package:
Once a packate version is published, it is possible to update the metadata with the –update:
After the package is published, it becomes visible in
meteor show and atmospherejs.