V 2.0.0!!!!
#1363
Replies: 4 comments 3 replies
-
|
Just updated to 2.0.0 and tested both |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Good |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
AWesome, hope that this plugin keeps improving :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is their an electron plugin for vue 3? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This release has been long overdue and this plugin has been in the RC state for way too long, sorry for the delay. Anyways, better late than never, so here it is! If you were running the latest RC previously, there aren't any breaking changes or required migration steps. Thank you to all my supporters who have funded this project and made this release possible ❤️❤️!!
Breaking Changes from v1.x
testWithSpectronfunction requires you pass thespectronmodule as it's first arg, allowing you to specify the version of spectron to be used. You will need to install spectron as adevDependencytestEnvironmentset tonode, see the examples for more detailsinstallVueDevtoolsfunctionA few major deps were upgraded:
These upgrades may cause breaking changes depending on your specific application.
The internal tests are now run on vue cli v4, and it is recommended that you update your app to vue cli v4 as well.
Fixes and Features
package.jsonwithoutdependenciesfield (fix(build): support package.json without 'dependencies' field #828)electronbeing listed independenciesas well asdevDependencies(fix(webpackConfig): get electron version from deps or devDeps #829)Migrating a v1.x Project:
(yarn add | npm install) -D vue-cli-plugin-electron-builder@latestto install the 2.0 version of the plugin.background.(js|ts), replacenodeIntegration:truewith:nodeIntegration, enable it invue.config.js:testWithSpectronfunction, install the proper version of spectron according to the version map, and pass the spectron import at the first argument of all of yourtestWithSpectroncalls. See the docs for more details.src/background.jsby default) to use electron-devtools-installer:import { createProtocol, - installVueDevtools } from 'vue-cli-plugin-electron-builder/lib' + import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer' ... (around line 77) -await installVueDevtools() +await installExtension(VUEJS_DEVTOOLS)And then run
npm i -D electron-devtools-installer/yarn add -D electron-devtools-installer.After following these steps, your project should be good to go with v2.0!
This discussion was created from the release V 2.0.0!!!!.
Beta Was this translation helpful? Give feedback.
All reactions