1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-25 11:18:35 +01:00

pass through Jekyll output

This commit is contained in:
Matthias Kretschmann 2018-07-06 13:17:19 +02:00
parent 10bbf6959f
commit dc18cdbf14
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -136,7 +136,13 @@ export const jekyll = done => {
const jekyll = cp.execFile('bundle', ['exec', jekyllOptions], {stdio: 'inherit'})
jekyll.on('error', error => onError(error)).on('close', done)
const jekyllLogger = buffer => {
buffer.toString()
.split(/\n/)
.forEach(message => console.log(message))
}
jekyll.stdout.on('data', jekyllLogger).on('close', done)
}