esa-commands
:::info This document covers the ESA (Edge Security Acceleration) CDN cache purge commands…
:::info This document covers the core development commands for building, running, and previewing the eIsland application. For environment setup and prerequisites, see [Frontend Setup](/developer/environment-setup/frontend-setup.md). :::
$ npx -y skills add JNTMTMTM/eIsland --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/dev-commandsContext preview
What this command does when you run it.
:::info This document covers the core development commands for building, running, and previewing the eIsland application. For environment setup and prerequisites, see [Frontend Setup](/developer/environment-setup/frontend-setup.md). :::
title: Development Commands icon: code
:::info This document covers the core development commands for building, running, and previewing the eIsland application. For environment setup and prerequisites, see [Frontend Setup](/developer/environment-setup/frontend-setup.md). :::
All commands are run from the `web/` directory:
cd web npm run <script>
Starts the application in development mode with hot reload.
npm run dev
**Under the hood:**
| Step | Process | Output | |------|---------|--------| | 1 | Compiles `src/main/` with electron-vite | `out/main/` | | 2 | Compiles `src/preload/` with electron-vite | `out/preload/` | | 3 | Starts Vite dev server for `src/renderer/` | `http://localhost:5173` | | 4 | Launches Electron pointing at the dev server | Desktop window |
:::tip The renderer uses **React Fast Refresh** — component state is preserved across edits. Main process changes trigger an automatic Electron restart. :::
**Common issues:**
| Problem | Cause | Solution | |---------|-------|----------| | Port 5173 in use | Another process is occupying the port | `netstat -ano \| findstr :5173` then `taskkill /PID <pid> /F` | | White screen | Renderer dev server not ready | Wait a few seconds; Vite needs time to bundle on first run | | Native module errors | Modules not rebuilt for Electron | Run `npx electron-builder install-app-deps` |
Builds all three targets (main, preload, renderer) into the `out/` directory.
npm run build
**Output structure:**
out/ ├── main/ # Compiled main process (Node.js) ├── preload/ # Compiled preload scripts └── renderer/ # Compiled React UI (4 HTML entries)
:::info This command produces a production-ready build but does **not** create an installer. Use `npm run package` to produce a distributable `.exe` installer. See [Package Commands](package-commands.md). :::
**When to use:**
Previews the built application without the Vite dev server.
npm run preview
:::important You must run `npm run build` first. `npm run preview` serves the pre-built files from `out/` — it does not rebuild. :::
**When to use:**
**Port already in use:**
netstat -ano | findstr :5173 taskkill /PID <process-id> /F npm run dev
**Native module errors:**
npx electron-builder install-app-deps npm run dev
rm -rf out/ node_modules/ npm install npm run build
eIsland - A sleek, Apple Dynamic Island inspired floating widget for Windows, built with Electron.
Repo: JNTMTMTM/eIsland
:::info This document covers the ESA (Edge Security Acceleration) CDN cache purge commands…
:::info This document covers the packaging and lifecycle commands for building distributable…
:::info This document covers all build, test, and smoke commands for eIsland native plugins.…
:::info This document covers all code quality commands for the eIsland project — ESLint,…
:::info This document covers the release and changelog commands for publishing eIsland builds…
:::info This document covers the testing commands for running, filtering, and measuring test…