jsw

command module
v0.0.0-...-bea2ee3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 9 Imported by: 0

README

Jekyll Serve Watcher

PkgGoDev Actions/Go Ask DeepWiki

$ jekyll serve --watch

--watch option waste many CPU time, because it is implemented by stat() polling in each a second.

jsw replaces it by Go.

Getting started

How to compile

Install and upgrade.

$ go install github.com/koron/jsw@latest

Execute

Just type in your jekyll project:

$ jsw

instead of:

$ jekyll serve --watch

Requirements

  • jekyll (1.0 or above)

Documentation

Overview

Command jsw starts `jekyll serve` then watches the project directory for file changes and triggers `jekyll build` on a debounced schedule.

Directories

Path Synopsis
internal
jekyll
Package jekyll manages `jekyll serve` and `jekyll build` subprocesses.
Package jekyll manages `jekyll serve` and `jekyll build` subprocesses.
timebuf
Package timebuf provides a debounce timer that coalesces rapid consecutive events into a single notification after a quiet period.
Package timebuf provides a debounce timer that coalesces rapid consecutive events into a single notification after a quiet period.
watcher
Package watcher wraps fswatcher with recursive directory watching and an optional exclude filter.
Package watcher wraps fswatcher with recursive directory watching and an optional exclude filter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL