Setup
If you are new to the JavaScript or TypeScript ecosystem, start with JavaScript/TypeScript Learning Resources.
For a step-by-step Windows walkthrough with screenshots, see the Detailed Windows Setup Guide.
Overview
EcuBus-Pro is an Electron + Vue + TypeScript project with several native modules built through node-gyp. The typical local workflow is:
- Install the required toolchain.
- Install project dependencies.
- Build native modules when needed.
- Start the development app.
Prerequisites
Node.js22.xnpmPythonand C/C++ build tools required bynode-gyp
Platform Notes
- On Windows, install the Visual Studio C++ build tools before compiling native modules.
- On Linux and macOS, make sure the platform toolchain required by
node-gypis already available. - Native hardware adapter support differs by platform. Windows supports the widest adapter set in this repository.
Installation
Clone the repository:
git clone https://github.com/ecubus/EcuBus-Pro.git
cd EcuBus-ProInstall dependencies:
npm installnpm install will also run the project's postinstall step to install Electron app dependencies.
Start Developing
Run the desktop app in development mode:
npm run devThis is the main command most contributors need after the initial setup is complete.
Build Native Modules
Some features depend on native modules. Build them when you change native code or when your environment does not already have compiled artifacts:
npm run nativeThis command builds:
docandolinsomeip
To build only the worker native dependency and bundle the worker output:
npm run workerCommon Development Commands
Documentation
Start the docs site locally:
npm run docs:devBuild the docs site:
npm run docs:buildType Checking
Run all type checks:
npm run typecheckLinting and Formatting
Run ESLint:
npm run lintFormat the repository with Prettier:
npm run formatTests
Run the test suite:
npm run testMore test commands are documented in Test.
API Documentation
Generate API documentation:
npm run apiBuild Outputs
Build the desktop application:
npm run buildPlatform-specific package commands:
- Windows:
npm run build:win - macOS:
npm run build:mac - Linux:
npm run build:linux
Build the CLI:
- Development mode:
npm run cli:dev - Cross-platform bundle:
npm run cli:build - Windows package:
npm run cli:build:win - Linux package:
npm run cli:build:linux - macOS package:
npm run cli:build:mac
Build the SDK bundle:
npm run build:sdkTroubleshooting
- If native module compilation fails, first verify your
node-gyp, Python, and C/C++ build toolchain setup. - If you are developing on Windows and need a more guided setup flow, use the Detailed Windows Setup Guide.
- The GitHub workflow files in
.github/workflowsare also a good reference for the commands used in CI.