From a6e8a64c8e4b3f4cc147beba0315ec22b58b9803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tymoteusz=20St=C4=99pie=C5=84?= <57900160+403-html@users.noreply.github.com> Date: Mon, 19 Aug 2024 19:20:23 +0200 Subject: [PATCH] docs: add yarn command to create electron-app --- templates/typescript-+-webpack-template.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/typescript-+-webpack-template.md b/templates/typescript-+-webpack-template.md index 5757ebf..4890a76 100644 --- a/templates/typescript-+-webpack-template.md +++ b/templates/typescript-+-webpack-template.md @@ -6,10 +6,18 @@ description: Create a new Electron app with webpack and TypeScript. To get you up and running as fast as possible with [TypeScript](https://www.typescriptlang.org/) and [webpack](https://webpack.js.org/), we provide a template that makes use of the [`@electron-forge/plugin-webpack` module](../config/plugins/webpack.md) with sane TypeScript configuration defaults. +With npm: + ```bash npm init electron-app@latest my-new-app -- --template=webpack-typescript ``` +With yarn: + +```bash +yarn create electron-app my-new-app --template=webpack-typescript +``` + {% hint style="warning" %} There have been reports that using the Git Bash command line on Windows specifically with this template will prevent the Electron app from rendering (packaged apps are fine). We recommend that on Windows, you use CMD.exe, PowerShell, or [WSL2](../guides/developing-with-wsl.md). {% endhint %}