jnordberg/wintersmith

Wintersmith build does not finish or return 0

jtorresfabra opened this issue · 5 comments

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

Can you reproduce it without any plugins?

I'm using the wintersmith-nunjucks plugin, so probably related.

One more thing. Just calling wintersmith.build() from js does work. It happens only with cli.

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

That would be great. Thanks!