/dev-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.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/dev-commands
Context 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). :::
Command definition
dev-commands.mdtitle: Development Commands
icon: code
Development 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). :::
All commands are run from the `web/` directory:
cd web
npm run <script>
`npm run dev`
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占用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` |
`npm run build`
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:**
- Before running `npm run preview` to verify the production build
- When CI needs a clean build artifact
- To debug production-only issues locally
`npm run preview`
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:**
- Verify the production build works correctly before packaging
- Debug issues that only appear outside of dev mode (e.g., CSP violations, missing assets)
Troubleshooting
`npm run dev` Fails to Start
**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
TypeScript Errors After Pull
rm -rf out/ node_modules/
npm install
npm run build
Read more
title: Development Commands icon: code
Development 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). :::
All commands are run from the `web/` directory:
cd web npm run <script>
`npm run dev`
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占用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` |
`npm run build`
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:**
- Before running `npm run preview` to verify the production build
- When CI needs a clean build artifact
- To debug production-only issues locally
`npm run preview`
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:**
- Verify the production build works correctly before packaging
- Debug issues that only appear outside of dev mode (e.g., CSP violations, missing assets)
Troubleshooting
`npm run dev` Fails to Start
**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
TypeScript Errors After Pull
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
Other commands on eisland.
- /esa-commands
:::info This document covers the ESA (Edge Security Acceleration) CDN cache purge commands for clearing cached content on Alibaba Cloud ESA. These commands use the official `@alicloud/esa20240910` SDK. :::
Open command - /package-commands
:::info This document covers the packaging and lifecycle commands for building distributable installers and managing native modules. For development commands (dev, build, preview), see [Development Commands](dev-commands.md). :::
Open command - /plugin-commands
:::info This document covers all build, test, and smoke commands for eIsland native plugins. Each plugin lives under `plugins/` and has its own `package.json` with independent scripts. :::
Open command - /quality-commands
:::info This document covers the code quality commands for validating comment standards and i18n completeness in the eIsland frontend. :::
Open command - /release-commands
:::info This document covers the release and changelog commands for publishing eIsland builds and generating release notes. For packaging the installer locally, see [Package Commands](package-commands.md). :::
Open command - /test-commands
:::info This document covers the testing commands for running, filtering, and measuring test coverage in the eIsland frontend. :::
Open command

