Skip to content

Instantly share code, notes, and snippets.

@rootVIII
Last active May 30, 2022 16:11
Show Gist options
  • Save rootVIII/275e47c9715a4e20ae53c530e97757e9 to your computer and use it in GitHub Desktop.
Save rootVIII/275e47c9715a4e20ae53c530e97757e9 to your computer and use it in GitHub Desktop.
Javascript package-lock.json with Electron
# install into node_modules:
npm install electron --save-dev
npm install electron-builder --save-dev
{
"name": "glow_clock",
"version": "1.0.0",
"main": "main.js", // <-should be createWindow() electron starting point
"scripts": {
"start": "electron .",
"pack": "electron-builder -m",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"electron": "^13.1.2"
},
"devDependencies": {
"electron-builder": "^22.11.7",
"eslint": "^7.28.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.23.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment