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/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 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"