mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #4719 from trusktr/npm-depends-docs
Improve docs for Npm.depends.
This commit is contained in:
@@ -743,11 +743,15 @@ _.extend(PackageSource.prototype, {
|
||||
* @summary Specify which [NPM](https://www.npmjs.org/) packages
|
||||
* your Meteor package depends on.
|
||||
* @param {Object} dependencies An object where the keys are package
|
||||
* names and the values are version numbers in string form.
|
||||
* You can only depend on exact versions of NPM packages. Example:
|
||||
* names and the values are version numbers in string form or URLs to a
|
||||
* git commit by SHA. You can only depend on exact versions of NPM
|
||||
* packages. Example:
|
||||
*
|
||||
* ```js
|
||||
* Npm.depends({moment: "2.8.3"});
|
||||
* Npm.depends({
|
||||
* moment: "2.8.3",
|
||||
* async: "https://github.com/caolan/async/archive/71fa2638973dafd8761fa5457c472a312cc820fe.tar.gz"
|
||||
* });
|
||||
* ```
|
||||
* @locus package.js
|
||||
* @memberOf Npm
|
||||
|
||||
Reference in New Issue
Block a user