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
-
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
-
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
testWithSpectron
function requires you pass thespectron
module as it's first arg, allowing you to specify the version of spectron to be used. You will need to install spectron as adevDependency
testEnvironment
set tonode
, see the examples for more detailsinstallVueDevtools
functionA 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.json
withoutdependencies
field (fix(build): support package.json without 'dependencies' field #828)electron
being listed independencies
as 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@latest
to install the 2.0 version of the plugin.background.(js|ts)
, replacenodeIntegration:true
with:nodeIntegration
, enable it invue.config.js
:testWithSpectron
function, install the proper version of spectron according to the version map, and pass the spectron import at the first argument of all of yourtestWithSpectron
calls. See the docs for more details.src/background.js
by default) to use electron-devtools-installer: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