package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Oct 19, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package devwatch watches the files of a theme project that umono theme
dev follows. It polls, so it needs no file system notifications.
OnlyCSS reports whether paths is just assets/theme.css: the page then
swaps its stylesheet instead of reloading.
Watch scans projectDir every interval and calls fn with the changed paths,
until ctx is done. A scan that fails is tried again at the next interval.
type Snapshot map[string]stamp
Snapshot is the stamp of theme.toml, attributes.toml and every file under
assets/, by slash path. A missing file is left out.
Scan takes the snapshot of projectDir.
Changed returns the paths whose file was added, removed or changed from
old to s, sorted.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.