0.1.4 • Published 7 years ago
vue-electron-typescript-grpc-quickstart v0.1.4
vue-electron-typescript-grpc-quickstart
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.
Usage
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 startNote: 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.
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production (electron renderer process)
npm run buildCompiles and minifies for production (electron main process)
npm run build:mainprocClean project
npm run cleanStart electron app for debug
npm run startBuild electron distribution executable files (unpacked)
npm run packBuild electron distribution executable files (packing to the installer)
npm run distRun your tests
npm run testLints and fixes files
npm run lintRun your unit tests (renderer process)
npm run test:unitCustomize configuration
Electron Documentation (security)
See this guide.
0.1.4
7 years ago