Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mongo and redis optional dependencies #238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ node_js:
services:
- redis-server
- mongodb

install:
- npm install
- npm install redis mongo
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down