-1

I've an electron project and I'd like to use vueJS with it...I need someone to explain what should I do in ordered steps

1 Answers1

0

Your question is rather vague for this site. If you want Vue.js to be the main framework for your electron app, this package is a good option. It is really well done, and very well documented here.

If, however, you just want to use Vue for a small part of your app, you can simply import it via npm (npm install vue -s) and use it where needed.

import Vue from 'vue'

let app = new Vue({
  el: '#element',
  data() {
    return {}
  },
  ...
})

In this case, you'll find the Getting Started section of the vue docs helpful. Good Luck!

tony19
  • 125,647
  • 18
  • 229
  • 307
Vince
  • 3,207
  • 1
  • 17
  • 28
  • I've created Vue Project with Vue CLI 3 and I've installed electron-builder plugin. I'll move the files from electron project to the vue project Is that a good solution? – Abdulrahman Fawzy Sep 13 '19 at 19:26
  • @AbdulrahmanFawzy, I would recommend the other way around. Move your Vue files into your Electron project. If your end goal is an electron app, your project needs to be an electron project – not a Vue CLI project. – Vince Sep 13 '19 at 20:44