-
Notifications
You must be signed in to change notification settings - Fork 0
Build & Scripts
This page outlines the key development and build scripts used in the EVE Companion App. It explains how we automate tasks like documentation, Swagger client generation, and packaging for distribution.
The following scripts are available for development and maintenance:
"scripts": {
"start": "electron-forge start",
"make": "electron-forge make",
"package": "electron-forge package",
"generate-esi": "swagger-typescript-api generate --path https://esi.evetech.net/latest/swagger.json --output ./src/api/esi --name index.ts --axios --modular --union-enums",
"generate-docs": "jsdoc -c jsdoc.json",
"prepare": "npm run generate-esi && npm run generate-docs",
"test": "echo \"Error: no test specified\" && exit 1"
}| Script | Purpose |
|---|---|
start |
Launches the app in development mode using Electron Forge |
make |
Builds distributable packages for the current platform |
package |
Creates an unpackaged Electron app |
generate-esi |
Regenerates the ESI Swagger client (src/api/esi) |
generate-docs |
Generates developer documentation using JSDoc (/docs) |
prepare |
Runs both ESI generation and documentation (generate-esi + generate-docs) |
To regenerate the client from ESI's live Swagger definition:
npm run generate-esiThis will populate/update the folder:
src/api/esi/
├── apis/
├── models/
└── index.ts
⚠️ Recommended: Addsrc/api/esi/to.gitignoreif you don’t want to commit generated code.
To build updated documentation for the entire src/ directory:
npm run generate-docsOutput will be saved to:
docs/
This uses jsdoc.json as the config file, and optionally better-docs for theming.
To create a distributable version of the app:
npm run makeThis will use Electron Forge to create .zip, .deb, .rpm, or .squirrel installers depending on your OS.
To test the built app:
npm run packageThis creates a local unpackaged Electron bundle for testing before packaging fully.
- Scripts in
package.jsonautomate key parts of development - Use
prepareto rebuild everything - Use
maketo create production-ready installers
Next: Dev & Debug Tools