From 47c4553376d4cc018281e70610f0db78efdbe889 Mon Sep 17 00:00:00 2001 From: Brennan Moore Date: Wed, 26 Apr 2017 14:45:27 -0400 Subject: [PATCH 1/2] make mongo and redis optional dependencies --- .travis.yml | 4 ++++ package.json | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 62ab624..effde91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,7 @@ node_js: services: - redis-server - mongodb + +install: + - npm install + - npm install redis mongo diff --git a/package.json b/package.json index 1f11e6c..733e7e0 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,16 @@ "dependencies": { "async": "^2.1.4", "bluebird": "^3.0.2", - "lodash": "^4.17.3", - "mongodb": "^2.0.47", - "redis": "^2.2.5" + "lodash": "^4.17.3" }, "devDependencies": { "mocha": "^3.2.0", "chai": "^3.4.0" }, + "optionalDependencies": { + "mongodb": "^2.0.47", + "redis": "^2.2.5" + }, "scripts": { "test": "mocha test/runner.js --reporter spec", "cover": "istanbul cover -- _mocha test/runner.js --reporter spec" From 51ea487c9c0197dde90e42b72e2ec914c09ad1a8 Mon Sep 17 00:00:00 2001 From: Brennan Moore Date: Thu, 13 Jul 2017 09:24:57 -0400 Subject: [PATCH 2/2] add note about installing redis or mongo now that they are not always installed --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 274badc..fc0a3a3 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,10 @@ Follow [manast](http://twitter.com/manast) for news and updates regarding this l Using npm: -```javascript +```bash npm install acl +# Install redis or mongo if needed +npm install redis mongo ``` ##Documentation