github caiolandgraf/grove v1.2.0
v1.2.0 - ๐ŸŒฟ `grove dev` โ€” built-in hot reload (no Air required)

latest releases: v1.5.5, v1.5.4, v1.5.3...
one month ago

โœจ What's new

๐ŸŒฟ grove dev โ€” built-in hot reload

Grove now ships its own hot reload watcher. No Air, no external tools, nothing to install. Run grove dev and Grove will compile, launch, and automatically restart your binary on every .go save.

grove dev

Under the hood it uses fsnotify for real OS-level file events (kqueue on macOS, inotify on Linux), a debounce window to collapse burst saves into a single rebuild, and auto-registration of newly created subdirectories at runtime.

Behaviour is fully configurable via the optional [dev] section in grove.toml:

[dev]
root        = "."
bin         = ".grove/tmp/app"
build_cmd   = "go build -o .grove/tmp/app ."
watch_dirs  = [".", "internal", "controllers", "models"]
exclude     = [".grove", "vendor", "node_modules"]
extensions  = [".go"]
debounce_ms = 300

All fields are optional โ€” sensible defaults are used when grove.toml is absent or the [dev] section is omitted.


๐Ÿงช grove test -w no longer requires Air

Watch mode for the test suite now delegates directly to gest's own built-in -w flag. Air is no longer a dependency for grove test -w.

grove test -w    # watch mode โ€” no air required
grove test -wc   # watch mode + coverage report

๐Ÿ”ง New flags for grove make:model

Two shorthand flags make full-stack scaffolding faster:

Flag Expands to Result
-d / --dto model + DTO Scaffold a model and its request/response DTO
-r / --resource model + migration + controller + DTO Full resource in one command
grove make:model Post -d    # model + DTO
grove make:model Post -r    # model + migration + controller + DTO

๐Ÿ”– grove -v / grove --version

grove -v
grove --version

Prints the Grove logo and current version. Both flags are equivalent.


๐Ÿ”„ Improvements

  • Shell completion auto-install โ€” grove completion [bash|zsh|fish|powershell] now writes the script to the correct config file automatically, so there's no need to pipe output manually.
  • gest auto-install โ€” grove make:test now runs go get automatically when creating the test entrypoint for the first time, so grove test works immediately with zero setup.
  • CLI help banner โ€” Commands are grouped into labelled sections (Generators, Testing, Server & Build, Database, Setup) for easier scanning.

๐Ÿ“ฆ Dependency changes

Package Change
github.com/caiolandgraf/gest v1.0.0 โ†’ v1.1.0
github.com/fsnotify/fsnotify Added v1.9.0
github.com/BurntSushi/toml Added v1.6.0

Full Changelog: v1.1.0...v1.2.0

Don't miss a new grove release

NewReleases is sending notifications on new releases.