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:
parent
10bbf6959f
commit
dc18cdbf14
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user