guard / guard-nanoc

A Guard for nanoc
39 stars 9 forks source link

Add a new `nanoc live` command to nanoc CLI #28

Closed whitequark closed 8 years ago

whitequark commented 8 years ago

This command is exactly equivalent to running nanoc view and guard start in parallel, eliminating the need to use two terminals or shell job control.

whitequark commented 8 years ago

This change requires a minor version bump in nanoc and a dependency bump in guard-nanoc to work well.

I took the liberty of making nanoc live the default workflow described by README since I cannot see any downside to this and it is naturally much less annoying than the alternatives.

whitequark commented 8 years ago

This is unblocked now that nanoc 4.2.4 is released, right?

whitequark commented 8 years ago

Ah wait no, of course not, I forgot about semver.

denisdefreyne commented 8 years ago

This is now available in guard-nanoc 2.1.0.

rien commented 8 years ago

A heads up for those wanting to try this command, but getting nanoc: unknown command 'live': As stated in the README, the guard-nanoc gem should be in the :nanoc group.

I was a bit confused when I updated to 2.1 to try this but it wouldn't work.

But that aside, great work. This works like a charm! :+1:

denisdefreyne commented 8 years ago

@R13N Good point. I’ve clarified the instructions in ffdc6f4c8125e1ed638a6d82b37f94a406bf918f.