Merge pull request #8 from vatesfr/greenkeeper-update-all
Update all dependencies 🌴
This commit is contained in:
commit
5553d5fefa
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"comments": false,
|
|
||||||
"compact": true,
|
|
||||||
"plugins": [
|
|
||||||
"transform-runtime"
|
|
||||||
],
|
|
||||||
"presets": [
|
|
||||||
"stage-0",
|
|
||||||
"es2015"
|
|
||||||
]
|
|
||||||
}
|
|
1
packages/xo-server-auth-ldap/.gitignore
vendored
1
packages/xo-server-auth-ldap/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
/.nyc_output/
|
||||||
/bower_components/
|
/bower_components/
|
||||||
/dist/
|
/dist/
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
try { require('clarify') } catch (_) {}
|
Error.stackTraceLimit = 100
|
||||||
|
|
||||||
try { require('trace') } catch (_) {}
|
try { require('trace') } catch (_) {}
|
||||||
|
try { require('clarify') } catch (_) {}
|
||||||
try { require('source-map-support/register') } catch (_) {}
|
try { require('source-map-support/register') } catch (_) {}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 'iojs'
|
- 'stable'
|
||||||
|
- '4'
|
||||||
- '0.12'
|
- '0.12'
|
||||||
- '0.10'
|
|
||||||
|
# Use containers.
|
||||||
|
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
||||||
|
sudo: false
|
||||||
|
@ -25,40 +25,62 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.12"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel-runtime": "^6.3.19",
|
"babel-runtime": "^6.3.19",
|
||||||
"event-to-promise": "^0.6.0",
|
"event-to-promise": "^0.7.0",
|
||||||
"exec-promise": "^0.5.1",
|
"exec-promise": "^0.6.1",
|
||||||
"fs-promise": "^0.3.1",
|
"fs-promise": "^0.5.0",
|
||||||
"inquirer": "^0.11.0",
|
"inquirer": "^1.0.2",
|
||||||
"ldapjs": "^1.0.0"
|
"ldapjs": "^1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-cli": "^6.3.17",
|
"babel-cli": "^6.3.17",
|
||||||
"babel-eslint": "^5.0.0-beta6",
|
"babel-eslint": "^6.0.4",
|
||||||
"babel-plugin-transform-runtime": "^6.3.13",
|
"babel-plugin-transform-runtime": "^6.3.13",
|
||||||
"babel-preset-es2015": "^6.3.13",
|
"babel-preset-es2015": "^6.3.13",
|
||||||
"babel-preset-stage-0": "^6.3.13",
|
"babel-preset-stage-0": "^6.3.13",
|
||||||
"clarify": "^1.0.5",
|
"clarify": "^1.0.5",
|
||||||
|
"dependency-check": "^2.5.1",
|
||||||
|
"ghooks": "^1.2.1",
|
||||||
"mocha": "^2.2.5",
|
"mocha": "^2.2.5",
|
||||||
"must": "^0.13.1",
|
"must": "^0.13.1",
|
||||||
|
"nyc": "^6.4.2",
|
||||||
"sinon": "^1.15.3",
|
"sinon": "^1.15.3",
|
||||||
"source-map-support": "^0.4.0",
|
"source-map-support": "^0.4.0",
|
||||||
"standard": "^5.3.0",
|
"standard": "^7.0.0",
|
||||||
"trace": "^2.1.1"
|
"trace": "^2.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "babel --source-maps --out-dir=dist/ src/",
|
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
|
||||||
|
"depcheck": "dependency-check ./package.json",
|
||||||
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
|
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
|
||||||
|
"dev-test": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\"",
|
||||||
"lint": "standard",
|
"lint": "standard",
|
||||||
|
"posttest": "npm run lint && npm run depcheck",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"test": "npm run lint && mocha --opts .mocha.opts \"dist/**/*.spec.js\"",
|
"test": "nyc mocha --opts .mocha.opts \"dist/**/*.spec.js\""
|
||||||
"test-dev": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\""
|
},
|
||||||
|
"babel": {
|
||||||
|
"plugins": [
|
||||||
|
"transform-runtime"
|
||||||
|
],
|
||||||
|
"presets": [
|
||||||
|
"stage-0",
|
||||||
|
"es2015"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"dist/**"
|
"dist"
|
||||||
],
|
],
|
||||||
"parser": "babel-eslint"
|
"parser": "babel-eslint"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"ghooks": {
|
||||||
|
"commit-msg": "npm test"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
packages/xo-server-auth-ldap/src/index.spec.js
Normal file
17
packages/xo-server-auth-ldap/src/index.spec.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/* eslint-env mocha */
|
||||||
|
|
||||||
|
import expect from 'must'
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
import myLib from './'
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
describe.skip('myLib', () => {
|
||||||
|
it('does something', () => {
|
||||||
|
// TODO: some real tests.
|
||||||
|
|
||||||
|
expect(myLib).to.exists()
|
||||||
|
})
|
||||||
|
})
|
@ -63,46 +63,46 @@ const _extractValue = ({ value }) => value
|
|||||||
|
|
||||||
export const confirm = (message, {
|
export const confirm = (message, {
|
||||||
default: defaultValue = null
|
default: defaultValue = null
|
||||||
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
|
} = EMPTY_OBJECT) => prompt({
|
||||||
default: defaultValue,
|
default: defaultValue,
|
||||||
message,
|
message,
|
||||||
name: 'value',
|
name: 'value',
|
||||||
type: 'confirm'
|
type: 'confirm'
|
||||||
}, resolve)).then(_extractValue)
|
}).then(_extractValue)
|
||||||
|
|
||||||
export const input = (message, {
|
export const input = (message, {
|
||||||
default: defaultValue = null,
|
default: defaultValue = null,
|
||||||
filter = undefined,
|
filter = undefined,
|
||||||
validate = undefined
|
validate = undefined
|
||||||
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
|
} = EMPTY_OBJECT) => prompt({
|
||||||
default: defaultValue,
|
default: defaultValue,
|
||||||
message,
|
message,
|
||||||
name: 'value',
|
name: 'value',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
validate
|
validate
|
||||||
}, resolve)).then(_extractValue)
|
}).then(_extractValue)
|
||||||
|
|
||||||
export const list = (message, choices, {
|
export const list = (message, choices, {
|
||||||
default: defaultValue = null
|
default: defaultValue = null
|
||||||
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
|
} = EMPTY_OBJECT) => prompt({
|
||||||
default: defaultValue,
|
default: defaultValue,
|
||||||
choices,
|
choices,
|
||||||
message,
|
message,
|
||||||
name: 'value',
|
name: 'value',
|
||||||
type: 'list'
|
type: 'list'
|
||||||
}, resolve)).then(_extractValue)
|
}).then(_extractValue)
|
||||||
|
|
||||||
export const password = (message, {
|
export const password = (message, {
|
||||||
default: defaultValue = null,
|
default: defaultValue = null,
|
||||||
filter = undefined,
|
filter = undefined,
|
||||||
validate = undefined
|
validate = undefined
|
||||||
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
|
} = EMPTY_OBJECT) => prompt({
|
||||||
default: defaultValue,
|
default: defaultValue,
|
||||||
message,
|
message,
|
||||||
name: 'value',
|
name: 'value',
|
||||||
type: 'password',
|
type: 'password',
|
||||||
validate
|
validate
|
||||||
}, resolve)).then(_extractValue)
|
}).then(_extractValue)
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
@ -131,13 +131,13 @@ const promptByType = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let n = schema.minItems || 0
|
let n = schema.minItems || 0
|
||||||
while (i < n) {
|
while (i < n) { // eslint-disable-line no-unmodified-loop-condition
|
||||||
await promptItem()
|
await promptItem()
|
||||||
}
|
}
|
||||||
|
|
||||||
n = schema.maxItems || Infinity
|
n = schema.maxItems || Infinity
|
||||||
while (
|
while (
|
||||||
i < n &&
|
i < n && // eslint-disable-line no-unmodified-loop-condition
|
||||||
await confirm('additional item?', {
|
await confirm('additional item?', {
|
||||||
default: false
|
default: false
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user