Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: saintedlama/passport-local-mongoose
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0b5da93def0244a551188263bf473d48f3b95876
Choose a base ref
...
head repository: saintedlama/passport-local-mongoose
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7ae942a104a16e19412d5b24894d24bcf79ca895
Choose a head ref
Loading
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": ["env"],
"ignore": [
"index.js",
"lib/*.js"
]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/**
examples/**
release.js
22 changes: 22 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": [
"eslint:recommended",
"prettier"
],
"plugins": [
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
"node": true,
"mocha": true
},
"rules": {
"no-var": "error",
"prefer-const": "error",
"prettier/prettier": "error"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# test related
coverage/
.nyc_output/
testing
testapp

@@ -19,3 +20,4 @@ npm-debug.log
README.html
*.tgz
docs/
.vscode/
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"tabWidth": 2,
"printWidth": 140
}
35 changes: 23 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
language: node_js

sudo: false

node_js:
- "0.10"
- "0.12"
- "iojs"
- "4"
- "5"
- "13"
- "12"
- "11"
- "10"
- "9"
- "8"

services:
- mongodb
env:
- MONGODB_VERSION="2.6.12"
- MONGODB_VERSION="3.0.15"
- MONGODB_VERSION="3.2.16"
- MONGODB_VERSION="3.4.7"
- MONGODB_VERSION="3.6.2"
- MONGODB_VERSION="4.1.6"

before_script:
- npm install -g istanbul
- npm install coveralls
- npm install mocha-lcov-reporter
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB_VERSION}.tgz -O /tmp/mongodb.tgz
- tar -xvf /tmp/mongodb.tgz
- mkdir /tmp/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --dbpath /tmp/data &> /dev/null &
- ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --version
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done

after_script:
- NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
after_success: npm run coveralls
Loading