Difference between revisions of "User:Saul/electron"

From Organic Design wiki
m (Electron CLI)
m (Create Vue Project)
Line 13: Line 13:
 
== Create Vue Project ==
 
== Create Vue Project ==
 
<source lang="bash">
 
<source lang="bash">
 +
mkdir <PROJECT NAME> && cd <PROJECT NAME>
 
vue init webpack <PROJECT NAME> # create the project using the vue's cli.
 
vue init webpack <PROJECT NAME> # create the project using the vue's cli.
cd <PROJECT NAME>
 
 
npm i
 
npm i
 
</source>
 
</source>

Revision as of 22:20, 11 July 2018

This page is for my notes on using electron with vue.

Install

Electron CLI

sudo npm i -g electron # install electron globally.

If you get an error about not being able to create a folder, you can force it with

sudo npm i -g electron --unsafe-perm=true --allow-root

Create Vue Project

mkdir <PROJECT NAME> && cd <PROJECT NAME>
vue init webpack <PROJECT NAME> # create the project using the vue's cli.
npm i