chore(xo-server-load-balancer): use Babel 7

This commit is contained in:
Julien Fontanet
2018-08-20 17:12:33 +02:00
parent 404cf2b7e6
commit 7b2b9ca618
2 changed files with 7 additions and 22 deletions
+4 -22
View File
@@ -31,35 +31,17 @@
},
"dependencies": {
"@xen-orchestra/cron": "^1.0.3",
"babel-runtime": "^6.11.6",
"lodash": "^4.16.2"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-stage-3": "^6.24.1"
"@babel/cli": "7.0.0-rc.1",
"@babel/core": "7.0.0-rc.1",
"@babel/preset-env": "7.0.0-rc.1",
"babel-plugin-lodash": "^3.3.2"
},
"scripts": {
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "NODE_DEV=development babel --watch --source-maps --out-dir=dist/ src/",
"prepublishOnly": "yarn run build"
},
"babel": {
"plugins": [
"transform-runtime",
"lodash"
],
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
],
"stage-3"
]
}
}