feat: use Yarn workspaces

Much faster installation which is very important for CI.

We'll see if it proves difficult for deps management.
This commit is contained in:
Julien Fontanet
2017-10-28 13:23:56 +02:00
parent ea7c44b544
commit 11b1ff478e
58 changed files with 5716 additions and 63489 deletions

20
scripts/run Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env node
const { fromEvent } = require('promise-toolbox')
const { spawn } = require('child_process')
const { getPackages } = require('./utils')
require('exec-promise')(([ command, ...args ]) =>
getPackages().forEach(({ dir, name }) => {
console.log('*', name)
return fromEvent(spawn(command, args, {
cwd: dir,
stdio: 'inherit'
}), 'exit').then(code => {
if (code !== 0) {
throw code
}
})
})
)