mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +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'})
|
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…
x
Reference in New Issue
Block a user