From 74505cc18fabf4c33e7086859cb81925fbb1945f Mon Sep 17 00:00:00 2001 From: Theodor Diaconu Date: Thu, 22 Sep 2016 13:55:16 +0300 Subject: [PATCH] added npm depends --- .npm/package/.gitignore | 1 + .npm/package/README | 7 +++++++ .npm/package/npm-shrinkwrap.json | 9 +++++++++ main.server.js | 5 +++++ package.js | 5 +++++ 5 files changed, 27 insertions(+) create mode 100644 .npm/package/.gitignore create mode 100644 .npm/package/README create mode 100644 .npm/package/npm-shrinkwrap.json diff --git a/.npm/package/.gitignore b/.npm/package/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.npm/package/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/.npm/package/README b/.npm/package/README new file mode 100644 index 0000000..3d49255 --- /dev/null +++ b/.npm/package/README @@ -0,0 +1,7 @@ +This directory and the files immediately inside it are automatically generated +when you change this package's NPM dependencies. Commit the files in this +directory (npm-shrinkwrap.json, .gitignore, and this README) to source control +so that others run the same versions of sub-dependencies. + +You should NOT check in the node_modules directory that Meteor automatically +creates; if you are using git, the .gitignore file tells git to ignore it. diff --git a/.npm/package/npm-shrinkwrap.json b/.npm/package/npm-shrinkwrap.json new file mode 100644 index 0000000..6cdb574 --- /dev/null +++ b/.npm/package/npm-shrinkwrap.json @@ -0,0 +1,9 @@ +{ + "dependencies": { + "sift": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/sift/-/sift-3.2.6.tgz", + "from": "sift@3.2.6" + } + } +} diff --git a/main.server.js b/main.server.js index e569bce..235914d 100644 --- a/main.server.js +++ b/main.server.js @@ -1 +1,6 @@ import './lib/exposure/extension.js'; + +import { checkNpmVersions } from 'meteor/tmeasday:check-npm-versions'; +checkNpmVersions({ + 'sift': '3.2.x' +}, 'cultofcoders:grapher'); \ No newline at end of file diff --git a/package.js b/package.js index 1ffb2ad..2b24404 100644 --- a/package.js +++ b/package.js @@ -10,6 +10,10 @@ Package.describe({ documentation: 'README.md' }); +Npm.depends({ + 'sift': '3.2.6' +}); + Package.onUse(function (api) { api.versionsFrom('1.3'); @@ -21,6 +25,7 @@ Package.onUse(function (api) { 'matb33:collection-hooks@0.8.4', 'reywood:publish-composite@1.4.2', 'dburles:mongo-collection-instances@0.3.5', + 'tmeasday:check-npm-versions@0.3.1', 'meteorhacks:aggregate@1.3.0', 'mongo' ];