Add electron
This commit is contained in:
29
package.json
29
package.json
@@ -1,12 +1,17 @@
|
||||
{
|
||||
"name": "website",
|
||||
"version": "0.0.0",
|
||||
"main": "electron/main.cjs",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"build:electron": "ng build --base-href ./",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test"
|
||||
"test": "ng test",
|
||||
"electron": "npm run build:electron && electron .",
|
||||
"electron:dev": "ELECTRON_RENDERER_URL=http://localhost:4200 electron .",
|
||||
"electron:pack": "npm run build:electron && electron-builder --linux"
|
||||
},
|
||||
"private": true,
|
||||
"packageManager": "npm@11.12.1",
|
||||
@@ -24,9 +29,29 @@
|
||||
"@angular/build": "^21.2.6",
|
||||
"@angular/cli": "^21.2.6",
|
||||
"@angular/compiler-cli": "^21.2.0",
|
||||
"electron": "^36.4.0",
|
||||
"electron-builder": "^24.13.3",
|
||||
"jsdom": "^28.0.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "~5.9.2",
|
||||
"vitest": "^4.0.8"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.kaintim.website",
|
||||
"productName": "Website",
|
||||
"directories": {
|
||||
"output": "release"
|
||||
},
|
||||
"files": [
|
||||
"dist/website/browser/**/*",
|
||||
"electron/**/*",
|
||||
"package.json"
|
||||
],
|
||||
"linux": {
|
||||
"target": [
|
||||
"AppImage"
|
||||
],
|
||||
"category": "Utility"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user