electrobun-dev

Solid

Use when running Electrobun in development mode — electrobun dev, --watch flag, hot reload, CEF devtools, debugging the renderer, or understanding the dev build cycle.

AI & Automation 394 stars 68 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Electrobun Dev Mode ## Commands ```bash electrobun dev # build (dev env) once, then launch app electrobun dev --watch # build, launch, then watch for changes and rebuild+relaunch ``` Shorthand via package.json (standard templates): ```bash bun start # → electrobun dev bun run dev # → electrobun dev --watch ``` ## What Happens on `electrobun dev` 1. Reads `electrobun.config.ts` 2. Downloads any missing native binaries (Bun, launcher, WGPU/CEF if configured) 3. Bundles `build.bun.entrypoint` via `Bun.build()` in dev mode (no minify, sourcemaps inline) 4. Bundles each `build.views.*` entrypoint 5. Copies `build.copy` files to build output 6. Skips codesign and notarization 7. Writes app bundle to `build/dev-<os>-<arch>/` 8. Launches the app, streaming stdout/stderr to your terminal ## Watch Mode (`--watch`) After initial build+launch, watch mode monitors: - Dir containing `build.bun.entrypoint` - Dir(s) containing each `build.views.*` entrypoint - Dirs listed in `build.watch` (extra paths) - Dirs of files listed in `build.copy` **Debounce:** 300ms — rapid saves are coalesced into one rebuild. **Ignored automatically:** `build/`, `artifacts/`, `node_modules/`, and patterns in `build.watchIgnore`. **On change:** kills running app → rebuilds → relaunches. ### Extra watch paths ```typescript // electrobun.config.ts build: { watch: ["src/shared/", "assets/"], watchIgnore: ["src/**/*.test.ts", "src/**/*.spec.ts"], } ``` ## CEF Dev...

Details

Author
milady-ai
Repository
milady-ai/milady
Created
3 months ago
Last Updated
today
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category