ZOYKU火線榜

dnature/gridsome-electron-boilerplate技術文件

Salable, and focused on developer experience for building desktop apps with electron and gridsome. Includes typescript support for gridsome.

目錄大綱 (TOC) (2 章節)▾
多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
npm i gridsome-electron-boilerplate

Hardocs Client integrating Gridsome and Electron.

Note: This project has only being tested on a linux machine and it's working perfectly. This is open source so feel free to contribute. :)

Prerequisites:

  • Electron 8+ - install globally with npm i -g electron@latest
  • Gridsome - install npm install --global @gridsome/cli
  • Typescript (Optional) - install globally with npm i -g typescript

Quick start

If you have the Gridsome CLI installed, simply run:

gridsome create <YOUR_PROJECT_NAME> https://github.com/DNature/gridsome-electron-boilerplate

After creating your project, skip to the second step and continue till the end.

If you done have Gridsome CLI then follow these steps.

  1. Clone the project:
git clone https://github.com/DNature/gridsome-electron-boilerplate.git <YOUR_PROJECT_NAME>

# if <YOUR_PROJECT_NAME> is not specified then it defaults to gridsome-electron-boilerplate
  1. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.

  2. Run yarn or npm install to install all the necessary dependencies.

  3. Run npm run grant or yarn grant to make startServer.sh executable.

  4. Run yarn start or npm run start to start the server.

  5. enter your environment.

  • prod or production for production environment.
  • dev or development for development environment.

Now you're ready to rumble! 🤓

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-10