Documentation
¶
Overview ¶
Package devtools links the development tools into an application: the visual inspector, the control channel, the state that survives jamb dev's restarts (package devtools/hot), and the scenes of package scene (see docs/tools.md, "Scenes"). The inspector shows the element tree, styles, layout, accessibility and frame timings of a window, and Ctrl+Shift+I opens it (see docs/tools.md, "Visual inspector"). The control channel lets `jamb ctl` and coding agents read and drive the running app when JAMB_CONTROL=1 (see docs/tools.md, "Control channel").
The tools are left out of a program unless the program imports this package, so a release build carries none of their code. Import it for its side effect in the main package:
import _ "github.com/tyler-builds/jamb/devtools"
`jamb dev` links it into every app it builds, without the app importing it. Apps that set App.DevTools(true) need the import for Ctrl+Shift+I to work.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package hot keeps an app's state across the restarts of `jamb dev`: every signal the app makes with ui.NewSignal, and every ui.Local, has the value it had before the restart, with no code in the app.
|
Package hot keeps an app's state across the restarts of `jamb dev`: every signal the app makes with ui.NewSignal, and every ui.Local, has the value it had before the restart, with no code in the app. |