misc/ upgrade to Electron 12.0.1
This commit is contained in:
@@ -66,10 +66,14 @@ The application code is managed by `main.ts`. In this sample, the app runs with
|
||||
The Angular component contains an example of Electron and NodeJS native lib import.
|
||||
You can disable "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.ts`.
|
||||
|
||||
## Use Electron / NodeJS / 3rd party libraries
|
||||
## Use Electron / NodeJS libraries
|
||||
|
||||
This sample project runs in both modes (web and electron). To make this work, **you have to import your dependencies the right way**. Please check `providers/electron.service.ts` to watch how conditional import of libraries has to be done when using electron / NodeJS / 3rd party libraries in renderer context (i.e. Angular).
|
||||
|
||||
## Use "web" 3rd party libraries (like angular, material, bootstrap, ...)
|
||||
|
||||
3rd party librairies used by renderer process of electron (like angular) have to be added in `devDependencies` of `package.json` to not increase the final package's size. Otherwise it will significantly increase the size of your final package... not so cool :(
|
||||
|
||||
## Browser mode
|
||||
|
||||
Maybe you only want to execute the application in the browser with hot reload? Just run `npm run ng:serve:web`.
|
||||
|
||||
1403
package-lock.json
generated
1403
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@@ -44,7 +44,7 @@
|
||||
"@electron/remote": "1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-builders/custom-webpack": "11.0.0",
|
||||
"@angular-builders/custom-webpack": "11.1.1",
|
||||
"@angular-devkit/build-angular": "0.1102.5",
|
||||
"@angular-eslint/builder": "2.0.2",
|
||||
"@angular-eslint/eslint-plugin": "2.0.2",
|
||||
@@ -63,35 +63,35 @@
|
||||
"@angular/router": "11.2.6",
|
||||
"@ngx-translate/core": "13.0.0",
|
||||
"@ngx-translate/http-loader": "6.0.0",
|
||||
"@types/jasmine": "3.6.3",
|
||||
"@types/jasmine": "3.6.7",
|
||||
"@types/jasminewd2": "2.0.8",
|
||||
"@types/mocha": "8.2.0",
|
||||
"@types/node": "12.12.6",
|
||||
"@types/mocha": "8.2.1",
|
||||
"@types/node": "14.14.35",
|
||||
"@typescript-eslint/eslint-plugin": "4.16.1",
|
||||
"@typescript-eslint/eslint-plugin-tslint": "4.15.0",
|
||||
"@typescript-eslint/parser": "4.16.1",
|
||||
"chai": "4.2.0",
|
||||
"chai": "4.3.4",
|
||||
"conventional-changelog-cli": "2.1.1",
|
||||
"core-js": "3.6.5",
|
||||
"cross-env": "7.0.3",
|
||||
"electron": "11.2.0",
|
||||
"electron-builder": "22.9.1",
|
||||
"electron": "12.0.1",
|
||||
"electron-builder": "22.10.5",
|
||||
"electron-reload": "1.5.0",
|
||||
"eslint": "7.20.0",
|
||||
"eslint": "7.22.0",
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jsdoc": "31.6.1",
|
||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||
"jasmine-core": "3.6.0",
|
||||
"jasmine-core": "3.7.1",
|
||||
"jasmine-spec-reporter": "6.0.0",
|
||||
"karma": "6.1.1",
|
||||
"karma": "6.2.0",
|
||||
"karma-coverage-istanbul-reporter": "3.0.3",
|
||||
"karma-electron": "6.3.3",
|
||||
"karma-jasmine": "4.0.1",
|
||||
"karma-jasmine-html-reporter": "1.5.4",
|
||||
"mocha": "8.2.1",
|
||||
"mocha": "8.3.2",
|
||||
"npm-run-all": "4.1.5",
|
||||
"rxjs": "6.6.3",
|
||||
"spectron": "13.0.0",
|
||||
"rxjs": "6.6.6",
|
||||
"spectron": "14.0.0",
|
||||
"ts-node": "9.1.1",
|
||||
"tslib": "2.1.0",
|
||||
"typescript": "4.0.5",
|
||||
|
||||
Reference in New Issue
Block a user