Skip to content

Instantly share code, notes, and snippets.

@Pent
Last active December 17, 2015 20:28
Show Gist options
  • Select an option

  • Save Pent/5667475 to your computer and use it in GitHub Desktop.

Select an option

Save Pent/5667475 to your computer and use it in GitHub Desktop.
Include an NPM with meteor
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