Skip to content

Commit a6e8a64

Browse files
authored
docs: add yarn command to create electron-app
1 parent 71b7a31 commit a6e8a64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/typescript-+-webpack-template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ description: Create a new Electron app with webpack and TypeScript.
66

77
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.
88

9+
With npm:
10+
911
```bash
1012
npm init electron-app@latest my-new-app -- --template=webpack-typescript
1113
```
1214

15+
With yarn:
16+
17+
```bash
18+
yarn create electron-app my-new-app --template=webpack-typescript
19+
```
20+
1321
{% hint style="warning" %}
1422
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).
1523
{% endhint %}

0 commit comments

Comments
 (0)