chore(package): update all dependencies

This commit is contained in:
Julien Fontanet 2016-09-29 14:00:25 +02:00
parent cd8a92c30b
commit 2b8996e965
11 changed files with 50 additions and 71 deletions

View File

@ -1,11 +0,0 @@
{
"comments": false,
"compact": true,
"optional": [
"es7.asyncFunctions",
"es7.decorators",
"es7.exportExtensions",
"es7.functionBind",
"runtime"
]
}

View File

@ -41,7 +41,7 @@ indent_style = space
#
# Two spaces seems to be the standard most common style, at least in
# Node.js (http://nodeguide.com/style.html#tabs-vs-spaces).
[*.js]
[*.{js,jsx,ts,tsx}]
indent_size = 2
indent_style = space

View File

@ -1,9 +1,5 @@
/.nyc_output/
/bower_components/
/dist/
/node_modules/
npm-debug.log
npm-debug.log.*
!node_modules/*
node_modules/*/

View File

@ -2,8 +2,6 @@ language: node_js
node_js:
- 'stable'
- '4'
- '0.12'
- '0.10'
# Use containers.
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/

View File

@ -7,18 +7,13 @@ XO-Server plugin that allows load balancing.
Go inside your `xo-server` folder and install it:
```
> npm install xo-server-load-balancer
> npm install --global xo-server-load-balancer
```
## Usage
Edit your `xo-server` configuration and add the plugin name in the `plugins` section.
```yaml
plugins:
xo-server-load-balancer:
```
Like all other xo-server plugins, it can be configured directly via
the web iterface, see [the plugin documentation](https://xen-orchestra.com/docs/plugins.html).
## Development

View File

@ -27,46 +27,59 @@
"dist/"
],
"engines": {
"node": ">=0.12"
"node": ">=4"
},
"dependencies": {
"babel-runtime": "^5.8.34",
"babel-runtime": "^6.11.6",
"cron": "^1.1.0",
"event-to-promise": "^0.6.0",
"lodash.clonedeep": "^4.3.1",
"lodash.filter": "^4.2.0",
"lodash.find": "^4.3.0",
"lodash.includes": "^4.1.0",
"lodash.intersection": "^4.1.0",
"lodash.map": "^4.2.0",
"lodash.uniq": "^4.2.0"
"event-to-promise": "^0.7.0",
"lodash": "^4.16.2"
},
"devDependencies": {
"babel": "^5.8.34",
"babel-eslint": "^4.1.6",
"clarify": "^1.0.5",
"babel-cli": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-plugin-lodash": "^3.2.9",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"clarify": "^2.0.0",
"dependency-check": "^2.5.1",
"mocha": "^2.3.4",
"ghooks": "^1.3.2",
"mocha": "^3.1.0",
"must": "^0.13.1",
"nyc": "^3.2.2",
"source-map-support": "^0.3.3",
"standard": "^5.4.1",
"source-map-support": "^0.4.3",
"standard": "^8.2.0",
"trace": "^2.0.1"
},
"scripts": {
"build": "babel --source-maps --out-dir=dist/ src/",
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"depcheck": "dependency-check ./package.json",
"dev": "NODE_DEV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\"",
"lint": "standard",
"depcheck": "dependency-check ./package.json",
"posttest": "npm run lint && npm run depcheck",
"prepublish": "npm run build",
"test": "nyc mocha --opts .mocha.opts \"dist/**/*.spec.js\""
"test": "mocha --opts .mocha.opts \"dist/**/*.spec.js\""
},
"babel": {
"plugins": [
"transform-runtime",
"lodash"
],
"presets": [
"es2015",
"stage-0"
]
},
"standard": {
"ignore": [
"dist/**"
"dist"
],
"parser": "babel-eslint"
},
"config": {
"ghooks": {
"commit-msg": "npm test"
}
}
}

View File

@ -1,6 +1,4 @@
import filter from 'lodash.filter'
import clone from 'lodash.clonedeep'
import { default as mapToArray } from 'lodash.map'
import { clone, filter, map as mapToArray } from 'lodash'
import Plan from './plan'
import { debug } from './utils'
@ -8,10 +6,6 @@ import { debug } from './utils'
// ===================================================================
export default class DensityPlan extends Plan {
constructor (xo, name, poolIds, options) {
super(xo, name, poolIds, options)
}
_checkRessourcesThresholds (objects, averages) {
return filter(objects, object =>
averages[object.id].memoryFree > this._thresholds.memoryFree.low

View File

@ -1,9 +1,7 @@
import EventEmitter from 'events'
import eventToPromise from 'event-to-promise'
import intersection from 'lodash.intersection'
import uniq from 'lodash.uniq'
import { CronJob } from 'cron'
import { default as mapToArray } from 'lodash.map'
import { intersection, map as mapToArray, uniq } from 'lodash'
import DensityPlan from './density-plan'
import PerformancePlan from './performance-plan'

View File

@ -8,6 +8,10 @@ import myLib from './'
// ===================================================================
describe('myLib', () => {
// TODO
describe.skip('myLib', () => {
it('does something', () => {
// TODO: some real tests.
expect(myLib).to.exists()
})
})

View File

@ -1,6 +1,4 @@
import filter from 'lodash.filter'
import find from 'lodash.find'
import { default as mapToArray } from 'lodash.map'
import { filter, find, map as mapToArray } from 'lodash'
import Plan from './plan'
import { debug } from './utils'
@ -21,10 +19,6 @@ function searchBestObject (objects, fun) {
// ===================================================================
export default class PerformancePlan extends Plan {
constructor (xo, name, poolIds, options) {
super(xo, name, poolIds, options)
}
_checkRessourcesThresholds (objects, averages) {
return filter(objects, object => {
const objectAverages = averages[object.id]

View File

@ -1,6 +1,4 @@
import filter from 'lodash.filter'
import includes from 'lodash.includes'
import { default as mapToArray } from 'lodash.map'
import { filter, includes, map as mapToArray } from 'lodash'
import {
EXECUTION_DELAY,