Skip to content

Instantly share code, notes, and snippets.

@marihachi
Last active August 24, 2025 14:58
Show Gist options
  • Save marihachi/f3f88d022d6be892052d3a599edd8dcf to your computer and use it in GitHub Desktop.
Save marihachi/f3f88d022d6be892052d3a599edd8dcf to your computer and use it in GitHub Desktop.
Electronプロジェクトの作成

Electron Forgeを使ってElectronアプリの開発環境を用意できるようだ。

参考: https://www.electronforge.io/

以下のコマンドを実行してElectron Forgeのプロジェクトを生成できる。
テンプレートを指定しないと「Electron Forge + Electron + React」の構成で作成されるが、公式テンプレートである「vite-typescript」を指定すると、ViteとTypeScriptをプロジェクト構成に加えてくれる。

$ npx create-electron-app@latest my-app --template=vite-typescript
$ cd my-app

これでElectron Forge + Electron + React + Vite + TypeScriptなプロジェクトが作成される。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment