chore(package): update dependencies

This commit is contained in:
Julien Fontanet 2017-12-27 10:01:56 +01:00
parent 1b42523e2d
commit e1eb948c54
5 changed files with 417 additions and 391 deletions

View File

@ -1,8 +1,8 @@
{
"devDependencies": {
"babel-7-jest": "^21.3.2",
"babel-eslint": "^8.0.1",
"eslint": "^4.13.1",
"babel-eslint": "^8.1.2",
"eslint": "^4.14.0",
"eslint-config-standard": "^11.0.0-beta.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^5.2.1",
@ -10,7 +10,7 @@
"eslint-plugin-standard": "^3.0.1",
"exec-promise": "^0.7.0",
"husky": "^0.14.3",
"jest": "^22.0.3",
"jest": "^22.0.4",
"lint-staged": "^6.0.0",
"lodash": "^4.17.4",
"promise-toolbox": "^0.9.5",
@ -42,6 +42,8 @@
},
"private": true,
"scripts": {
"build": "scripts/run-script --parallel build",
"clean": "scripts/run-script --parallel clean",
"dev-test": "jest --bail --watch",
"lint-staged-stash": "touch .lint-staged && git stash save --include-untracked --keep-index && true",
"lint-staged-unstash": "git stash pop && rm -f .lint-staged && true",

View File

@ -24,13 +24,13 @@
"node": ">=4"
},
"dependencies": {
"@babel/polyfill": "^7.0.0-beta.35",
"@babel/polyfill": "^7.0.0-beta.36",
"lodash": "^4.17.4"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.35",
"@babel/core": "^7.0.0-beta.35",
"@babel/preset-env": "^7.0.0-beta.35",
"@babel/cli": "^7.0.0-beta.36",
"@babel/core": "^7.0.0-beta.36",
"@babel/preset-env": "^7.0.0-beta.36",
"babel-plugin-lodash": "^3.3.2",
"cross-env": "^5.1.1",
"rimraf": "^2.6.2"

View File

@ -37,7 +37,7 @@
"babel-runtime": "^6.23.0",
"cron": "^1.2.1",
"handlebars": "^4.0.6",
"html-minifier": "^3.5.7",
"html-minifier": "^3.5.8",
"lodash": "^4.17.4",
"promise-toolbox": "^0.9.5"
},

View File

@ -11,8 +11,12 @@ const { env } = process
// run a script for each package (also run pre and post)
//
// TODO: https://docs.npmjs.com/misc/scripts#environment
require('exec-promise')(([ script ]) =>
getPackages(true).forEach(({ dir, name, package: { scripts } }) => {
require('exec-promise')(args => {
const parallel = args[0] === '--parallel'
let script = args[parallel ? 1 : 0]
let errors = 0
return getPackages(true)[parallel ? 'map' : 'forEach'](({ dir, name, package: { scripts } }) => {
if (scripts == null) {
return
}
@ -30,14 +34,19 @@ require('exec-promise')(([ script ]) =>
script => {
const command = scripts[script]
if (command !== undefined) {
console.log(`* ${name}:${script}`)
console.log(`* ${name}:${script} `, command)
return fromEvent(spawn(command, spawnOpts), 'exit').then(code => {
if (code !== 0) {
throw code
++errors
console.log(`* ${name}:${script} Error:`, code)
}
})
}
}
)
}).then(() => {
if (errors !== 0) {
throw errors
}
})
})
)

771
yarn.lock

File diff suppressed because it is too large Load Diff