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