ionic-everywhere build
Run project build scripts across platforms.
bash
cd my-app && ionic-everywhere build
ionic-everywhere build --platform android --dir ./my-app
ionic-everywhere build -p desktopUsage
ionic-everywhere build [--platform <all|android|desktop|web>] [-p <target>] [--dir <path>] [--pm <pm>]| Option | Description |
|---|---|
--platform, -p <tgt> | Target platform to build (all, android, desktop/electron, web). Defaults to all. |
--dir <path> | Project directory (defaults to nearest project root, walking up). |
--pm <pm> | Package manager (bun, npm, pnpm, yarn). |
What it does
- Locates the project root (or uses
--dir) and verifiespackage.jsonexists. - Selects the appropriate build script based on the chosen platform:
all(default): runsbuild:all(falling back tobuild).android: runsbuild:android(falling back tobuild).desktop: runsbuild:desktop(falling back tobuild).web: runsbuild.
- Streams output using the project's selected package manager runner (
bun run,npm run, etc.).