mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-07 03:16:41 +00:00
33 lines
487 B
Markdown
33 lines
487 B
Markdown
|
# [Electron](https://www.electronjs.org/)
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```txt
|
||
|
electron-app/
|
||
|
├── package.json
|
||
|
├── main.js
|
||
|
└── index.html
|
||
|
```
|
||
|
|
||
|
```ps1
|
||
|
npm i -D electron@latest # electron@beta for beta version
|
||
|
```
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"name": "<app_name>",
|
||
|
"version": "<SemVer>",
|
||
|
"description": "",
|
||
|
"main": "main.js",
|
||
|
"scripts": {
|
||
|
"start": "electron ."
|
||
|
},
|
||
|
"keywords": [],
|
||
|
"author": "",
|
||
|
"license": "",
|
||
|
"devDependencies": {
|
||
|
"electron": "<electron_version>"
|
||
|
}
|
||
|
}
|
||
|
```
|