Distributing a package
To distribute a package, it is mandatory to follow certain rules. Being developers, we know how well a public library or framework needs to be maintained. It has to be annotated, documented, organized, updated, and above all supported. Only then, an open source library or framework will gain momentum. The same is the case here when we think about distributing a package.
First of all, we have to create the package out of our application and link it to our application using soft links. We don't have to create the package inside the packages
directory, instead we keep it in some other convenient location and start writing the package. Then, we can soft link (ln -s <path to package>
) the package to the packages
directory inside the application. If we run the meteor add <package>
command, things will work the way we have done so far in the previous sections.
Once you have created and completed the package, write tests as we did earlier. Write tests to significant...