From 2472f85a37802ecd6137672121dec2819bafcce1 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Fri, 17 Nov 2023 11:48:56 -0800 Subject: [PATCH] chore: remove remaining references to yarn (#155) --- config/plugins/fuses.md | 10 --------- config/plugins/vite.md | 10 --------- config/plugins/webpack.md | 10 --------- guides/create-and-add-icons.md | 2 +- guides/developing-with-wsl.md | 2 +- guides/framework-integration/vue-3.md | 29 --------------------------- 6 files changed, 2 insertions(+), 61 deletions(-) diff --git a/config/plugins/fuses.md b/config/plugins/fuses.md index 961876b..4c23c39 100644 --- a/config/plugins/fuses.md +++ b/config/plugins/fuses.md @@ -20,19 +20,9 @@ For an updated list of the features that can be enabled/disabled using Fuses, pl This plugin has a peer dependency on `@electron/fuses`, so don't forget to install it too! {% endhint %} -{% tabs %} -{% tab title="yarn" %} -```shell -yarn add --dev @electron-forge/plugin-fuses @electron/fuses -``` -{% endtab %} - -{% tab title="npm" %} ```shell npm install --save-dev @electron-forge/plugin-fuses @electron/fuses ``` -{% endtab %} -{% endtabs %} ## Usage diff --git a/config/plugins/vite.md b/config/plugins/vite.md index ac6bf10..04efce3 100644 --- a/config/plugins/vite.md +++ b/config/plugins/vite.md @@ -8,19 +8,9 @@ This plugin makes it easy to set up standard Vite tooling to compile both your m ## Installation -{% tabs %} -{% tab title="yarn" %} -```shell -yarn add --dev @electron-forge/plugin-vite -``` -{% endtab %} - -{% tab title="npm" %} ```shell npm install --save-dev @electron-forge/plugin-vite ``` -{% endtab %} -{% endtabs %} ## Usage diff --git a/config/plugins/webpack.md b/config/plugins/webpack.md index 1fd3adc..1c24527 100644 --- a/config/plugins/webpack.md +++ b/config/plugins/webpack.md @@ -8,19 +8,9 @@ This plugin makes it easy to set up standard [webpack](https://webpack.js.org/) ## Installation -{% tabs %} -{% tab title="yarn" %} -```shell -yarn add --dev @electron-forge/plugin-webpack -``` -{% endtab %} - -{% tab title="npm" %} ```shell npm install --save-dev @electron-forge/plugin-webpack ``` -{% endtab %} -{% endtabs %} ## Usage diff --git a/guides/create-and-add-icons.md b/guides/create-and-add-icons.md index 8d9400f..40bfb9e 100644 --- a/guides/create-and-add-icons.md +++ b/guides/create-and-add-icons.md @@ -93,7 +93,7 @@ const win = new BrowserWindow({ }) -Once the path to the icon has been configured, build your project to generate your executable with either `yarn make` or `npm run make`. +Once the path to the icon has been configured, build your project to generate your executable with either `npm run make`. ## Configuring installer icons diff --git a/guides/developing-with-wsl.md b/guides/developing-with-wsl.md index 2f55822..d6cb9da 100644 --- a/guides/developing-with-wsl.md +++ b/guides/developing-with-wsl.md @@ -23,7 +23,7 @@ npm_config_platform=win32 npm install ``` -Then, start the Electron app in development mode as usual via `npm start` or `yarn start` _\(respectively\)_. +Then, start the Electron app in development mode as usual via `npm start`. For package/make/publish, you'll still need to specify the platform if you want to generate bundles/distributables for Windows. diff --git a/guides/framework-integration/vue-3.md b/guides/framework-integration/vue-3.md index d218351..027c95b 100644 --- a/guides/framework-integration/vue-3.md +++ b/guides/framework-integration/vue-3.md @@ -16,48 +16,19 @@ The following guide has been tested with Vue 3 and Vite 4. Create an Electron app using Electron Forge's [Vite](../../templates/vite.md) template. -{% tabs %} -{% tab title="yarn" %} - -```bash -yarn create electron-app my-vue-app --template=vite -``` - -{% endtab %} - -{% tab title="npm" %} - ```bash npm init electron-app@latest my-vue-app -- --template=vite ``` -{% endtab %} -{% endtabs %} - ## Adding dependencies Add the `vue` npm package to your `dependencies` and the `@vitejs/plugin-vue` package to your `devDependencies`: -{% tabs %} -{% tab title="yarn" %} - -```bash -yarn add vue -yarn add --dev @vitejs/plugin-vue -``` - -{% endtab %} - -{% tab title="npm" %} - ```bash npm install vue npm install --save-dev @vitejs/plugin-vue ``` -{% endtab %} -{% endtabs %} - ## Integrating Vue 3 code You should now be able to start using Vue components in your Electron app. The following is a very minimal example of how to start to add Vue 3 code: