A boilerplate of Electron app that uses Vue in TypeScript.
This is based on the output of Vue CLI 3 and is not ejecting from the CLI.
Plus, this app implements gRPC client and spawn the child process which is a gRPC server.
This boilerplate is based on vue-electron-typescript-quickstart, and the gRPC invoking mechanism is provided by Out-of-proc Server.
git clone https://github.com/shellyln/vue-electron-typescript-grpc-quickstart.git
cd vue-electron-typescript-grpc-quickstart
vi package.json
# and edit package name, author, ...
rm package-lock.json
npm install
rm -rf .git/
git init
git add .
git commit -m "initial commit."
npm run build
npm run build:mainproc
npm start
Note: gRPC server process executable is needed. You can download the source from here.
The path of the executable can be set inconfig/app-config.json
.
npm install
npm run serve
npm run build
npm run build:mainproc
npm run clean
npm run start
npm run pack
npm run dist
npm run test
npm run lint
npm run test:unit
See this guide.