Skip to content

Built-in live command #24

Open
Open
@denisdefreyne

Description

@denisdefreyne

The guard-nanoc way of auto-recompiling a Nanoc site has some drawbacks:

  • Needs configuration: guard-nanoc needs a Guardfile whose configuration is the same pretty much all the time: watch nanoc.yaml/config.yaml, Rules, and content+layouts+lib. This configuration is redundant.

  • Breaks easily: Because guard-nanoc is a separate project that uses internal APIs of Nanoc, it tends to break after a Nanoc release.

  • Filesystem only: guard-nanoc can only listen to changes on the local file system.

A nanoc live command could solve these problems. In order for a nanoc live command to be full-fledged, it needs the following:

  • watcher
  • web server
  • notifications
  • autoreload
  • support for Windows (i.e. no fork)

Future work includes analysing incoming changes and bypassing the outdatedness checker when possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions