Last active
December 17, 2015 20:28
-
-
Save Pent/5667475 to your computer and use it in GitHub Desktop.
Include an NPM with meteor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Place files in /meteor-project-root/packages/x/ replace x with package name | |
| 2. meteor add x | |
| ------- x.js -------- | |
| X = Npm.require('x'); | |
| ------- package.js -------- | |
| Package.describe({ | |
| summary: "Meteor smart package for x node.js package" | |
| }); | |
| Npm.depends({ | |
| "x": "0.1.1" | |
| }); | |
| Package.on_use(function (api) { | |
| api.add_files("x.js", "client"); | |
| api.add_files("x.js", "server"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment