Merge pull request #8 from vatesfr/greenkeeper-update-all

Update all dependencies 🌴
This commit is contained in:
Julien Fontanet 2016-05-04 16:21:06 +02:00
commit 5553d5fefa
7 changed files with 69 additions and 34 deletions

View File

@ -1,11 +0,0 @@
{
"comments": false,
"compact": true,
"plugins": [
"transform-runtime"
],
"presets": [
"stage-0",
"es2015"
]
}

View File

@ -1,3 +1,4 @@
/.nyc_output/
/bower_components/
/dist/

View File

@ -1,3 +1,5 @@
try { require('clarify') } catch (_) {}
Error.stackTraceLimit = 100
try { require('trace') } catch (_) {}
try { require('clarify') } catch (_) {}
try { require('source-map-support/register') } catch (_) {}

View File

@ -1,5 +1,9 @@
language: node_js
node_js:
- 'iojs'
- 'stable'
- '4'
- '0.12'
- '0.10'
# Use containers.
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

View File

@ -25,40 +25,62 @@
"files": [
"dist/"
],
"engines": {
"node": ">=0.12"
},
"dependencies": {
"babel-runtime": "^6.3.19",
"event-to-promise": "^0.6.0",
"exec-promise": "^0.5.1",
"fs-promise": "^0.3.1",
"inquirer": "^0.11.0",
"event-to-promise": "^0.7.0",
"exec-promise": "^0.6.1",
"fs-promise": "^0.5.0",
"inquirer": "^1.0.2",
"ldapjs": "^1.0.0"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-eslint": "^5.0.0-beta6",
"babel-eslint": "^6.0.4",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"clarify": "^1.0.5",
"dependency-check": "^2.5.1",
"ghooks": "^1.2.1",
"mocha": "^2.2.5",
"must": "^0.13.1",
"nyc": "^6.4.2",
"sinon": "^1.15.3",
"source-map-support": "^0.4.0",
"standard": "^5.3.0",
"standard": "^7.0.0",
"trace": "^2.1.1"
},
"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-test": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\"",
"lint": "standard",
"posttest": "npm run lint && npm run depcheck",
"prepublish": "npm run build",
"test": "npm run lint && mocha --opts .mocha.opts \"dist/**/*.spec.js\"",
"test-dev": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\""
"test": "nyc mocha --opts .mocha.opts \"dist/**/*.spec.js\""
},
"babel": {
"plugins": [
"transform-runtime"
],
"presets": [
"stage-0",
"es2015"
]
},
"standard": {
"ignore": [
"dist/**"
"dist"
],
"parser": "babel-eslint"
},
"config": {
"ghooks": {
"commit-msg": "npm test"
}
}
}

View 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()
})
})

View File

@ -63,46 +63,46 @@ const _extractValue = ({ value }) => value
export const confirm = (message, {
default: defaultValue = null
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
} = EMPTY_OBJECT) => prompt({
default: defaultValue,
message,
name: 'value',
type: 'confirm'
}, resolve)).then(_extractValue)
}).then(_extractValue)
export const input = (message, {
default: defaultValue = null,
filter = undefined,
validate = undefined
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
} = EMPTY_OBJECT) => prompt({
default: defaultValue,
message,
name: 'value',
type: 'input',
validate
}, resolve)).then(_extractValue)
}).then(_extractValue)
export const list = (message, choices, {
default: defaultValue = null
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
} = EMPTY_OBJECT) => prompt({
default: defaultValue,
choices,
message,
name: 'value',
type: 'list'
}, resolve)).then(_extractValue)
}).then(_extractValue)
export const password = (message, {
default: defaultValue = null,
filter = undefined,
validate = undefined
} = EMPTY_OBJECT) => new Promise(resolve => prompt({
} = EMPTY_OBJECT) => prompt({
default: defaultValue,
message,
name: 'value',
type: 'password',
validate
}, resolve)).then(_extractValue)
}).then(_extractValue)
// ===================================================================
@ -131,13 +131,13 @@ const promptByType = {
}
let n = schema.minItems || 0
while (i < n) {
while (i < n) { // eslint-disable-line no-unmodified-loop-condition
await promptItem()
}
n = schema.maxItems || Infinity
while (
i < n &&
i < n && // eslint-disable-line no-unmodified-loop-condition
await confirm('additional item?', {
default: false
})