Wintersmith build does not finish or return 0
jtorresfabra opened this issue · 5 comments
jtorresfabra commented
I'm trying to write a shell script calling cli wintersmith build, but it seems wintersmith never returns control if it succeed. I always need to Ctrl-C to continue. Any clue or advise? Thanks
jnordberg commented
Can you reproduce it without any plugins?
jtorresfabra commented
I'm using the wintersmith-nunjucks plugin, so probably related.
jtorresfabra commented
One more thing. Just calling wintersmith.build() from js does work. It happens only with cli.
jnordberg commented
Yep, was the nunjucks plugin. See jbuck/wintersmith-nunjucks#22
I'm going to add a process.exit as well to the cli, no point in allowing plugins to keep the process running after they call the callback
jtorresfabra commented
That would be great. Thanks!