Upgrade to Angular 12 / Electron 13

This commit is contained in:
Maxime GRIS
2021-05-30 11:13:45 +02:00
parent 21197abbb6
commit fc006d20c0
6 changed files with 3681 additions and 5634 deletions

View File

@@ -14,12 +14,12 @@
# Introduction # Introduction
Bootstrap and package your project with Angular 11 and Electron 12 (Typescript + SASS + Hot Reload) for creating Desktop applications. Bootstrap and package your project with Angular 12 and Electron 13 (Typescript + SASS + Hot Reload) for creating Desktop applications.
Currently runs with: Currently runs with:
- Angular v11.2.8 - Angular v12.0.2
- Electron v12.0.6 - Electron v13.0.1
- Electron Builder v22.10.5 - Electron Builder v22.10.5
With this sample, you can: With this sample, you can:
@@ -30,7 +30,7 @@ With this sample, you can:
/!\ Hot reload only pertains to the renderer process. The main electron process is not able to be hot reloaded, only restarted. /!\ Hot reload only pertains to the renderer process. The main electron process is not able to be hot reloaded, only restarted.
/!\ Angular 11.x CLI needs Node 10.13 or later to work correctly. /!\ Angular 12.x CLI needs Node 11 or later to work correctly.
## Getting Started ## Getting Started
@@ -150,7 +150,8 @@ Please note that Hot reload is only available in Renderer process.
- Angular 8 & Electron 7 : Branch [angular8](https://github.com/maximegris/angular-electron/tree/angular8) - Angular 8 & Electron 7 : Branch [angular8](https://github.com/maximegris/angular-electron/tree/angular8)
- Angular 9 & Electron 7 : Branch [angular9](https://github.com/maximegris/angular-electron/tree/angular9) - Angular 9 & Electron 7 : Branch [angular9](https://github.com/maximegris/angular-electron/tree/angular9)
- Angular 10 & Electron 9 : Branch [angular10](https://github.com/maximegris/angular-electron/tree/angular10) - Angular 10 & Electron 9 : Branch [angular10](https://github.com/maximegris/angular-electron/tree/angular10)
- Angular 11 & Electron 12 : (master) - Angular 11 & Electron 12 : Branch [angular10](https://github.com/maximegris/angular-electron/tree/angular11)
- Angular 12 & Electron 13 : (master)
[maintained-badge]: https://img.shields.io/badge/maintained-yes-brightgreen [maintained-badge]: https://img.shields.io/badge/maintained-yes-brightgreen
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg [license-badge]: https://img.shields.io/badge/license-MIT-blue.svg

9192
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{ {
"name": "angular-electron", "name": "angular-electron",
"version": "9.0.8", "version": "10.0.0",
"description": "Angular 11 with Electron (Typescript + SASS + Hot Reload)", "description": "Angular 12 with Electron (Typescript + SASS + Hot Reload)",
"homepage": "https://github.com/maximegris/angular-electron", "homepage": "https://github.com/maximegris/angular-electron",
"author": { "author": {
"name": "Maxime GRIS", "name": "Maxime GRIS",
@@ -9,7 +9,7 @@
}, },
"keywords": [ "keywords": [
"angular", "angular",
"angular 11", "angular 12",
"electron", "electron",
"nodejs", "nodejs",
"typescript", "typescript",
@@ -44,64 +44,64 @@
"@electron/remote": "1.0.4" "@electron/remote": "1.0.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-builders/custom-webpack": "11.1.1", "@angular-builders/custom-webpack": "12.0.0",
"@angular-devkit/build-angular": "0.1102.7", "@angular-devkit/build-angular": "12.0.2",
"@angular-eslint/builder": "2.0.2", "@angular-eslint/builder": "12.0.0",
"@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin": "12.0.0",
"@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/eslint-plugin-template": "12.0.0",
"@angular-eslint/schematics": "2.0.2", "@angular-eslint/schematics": "12.0.0",
"@angular-eslint/template-parser": "2.0.2", "@angular-eslint/template-parser": "12.0.0",
"@angular/cli": "11.2.7", "@angular/cli": "12.0.2",
"@angular/common": "11.2.8", "@angular/common": "12.0.2",
"@angular/compiler": "11.2.8", "@angular/compiler": "12.0.2",
"@angular/compiler-cli": "11.2.8", "@angular/compiler-cli": "12.0.2",
"@angular/core": "11.2.8", "@angular/core": "12.0.2",
"@angular/forms": "11.2.8", "@angular/forms": "12.0.2",
"@angular/language-service": "11.2.8", "@angular/language-service": "12.0.2",
"@angular/platform-browser": "11.2.8", "@angular/platform-browser": "12.0.2",
"@angular/platform-browser-dynamic": "11.2.8", "@angular/platform-browser-dynamic": "12.0.2",
"@angular/router": "11.2.8", "@angular/router": "12.0.2",
"@ngx-translate/core": "13.0.0", "@ngx-translate/core": "13.0.0",
"@ngx-translate/http-loader": "6.0.0", "@ngx-translate/http-loader": "6.0.0",
"@types/jasmine": "3.6.7", "@types/jasmine": "3.7.6",
"@types/jasminewd2": "2.0.8", "@types/jasminewd2": "2.0.9",
"@types/mocha": "8.2.1", "@types/mocha": "8.2.2",
"@types/node": "14.14.35", "@types/node": "15.6.1",
"@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/eslint-plugin": "4.25.0",
"@typescript-eslint/eslint-plugin-tslint": "4.15.0", "@typescript-eslint/eslint-plugin-tslint": "4.25.0",
"@typescript-eslint/parser": "4.16.1", "@typescript-eslint/parser": "4.25.0",
"chai": "4.3.4", "chai": "4.3.4",
"conventional-changelog-cli": "2.1.1", "conventional-changelog-cli": "2.1.1",
"core-js": "3.6.5", "core-js": "3.6.5",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"electron": "12.0.6", "electron": "13.0.1",
"electron-builder": "22.10.5", "electron-builder": "22.10.5",
"electron-reload": "1.5.0", "electron-reload": "1.5.0",
"eslint": "7.22.0", "eslint": "7.27.0",
"eslint-plugin-import": "2.22.1", "eslint-plugin-import": "2.23.4",
"eslint-plugin-jsdoc": "31.6.1", "eslint-plugin-jsdoc": "35.0.0",
"eslint-plugin-prefer-arrow": "1.2.3", "eslint-plugin-prefer-arrow": "1.2.3",
"jasmine-core": "3.7.1", "jasmine-core": "3.7.1",
"jasmine-spec-reporter": "6.0.0", "jasmine-spec-reporter": "7.0.0",
"karma": "6.2.0", "karma": "6.3.2",
"karma-coverage-istanbul-reporter": "3.0.3", "karma-coverage-istanbul-reporter": "3.0.3",
"karma-electron": "6.3.3", "karma-electron": "7.0.0",
"karma-jasmine": "4.0.1", "karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.5.4", "karma-jasmine-html-reporter": "1.6.0",
"mocha": "8.3.2", "mocha": "8.4.0",
"nan": "2.14.2", "nan": "2.14.2",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"rxjs": "6.6.6", "rxjs": "6.6.6",
"spectron": "14.0.0", "spectron": "15.0.0",
"ts-node": "9.1.1", "ts-node": "9.1.1",
"tslib": "2.1.0", "tslib": "2.1.0",
"typescript": "4.0.5", "typescript": "4.2.4",
"wait-on": "5.0.1", "wait-on": "5.0.1",
"webdriver-manager": "12.1.8", "webdriver-manager": "12.1.8",
"zone.js": "0.10.3" "zone.js": "~0.11.4"
}, },
"engines": { "engines": {
"node": ">=10.13.0" "node": ">=11.0.0"
}, },
"browserslist": [ "browserslist": [
"chrome 83" "chrome 83"

View File

@@ -1,2 +1,2 @@
import 'core-js/es/reflect'; import 'core-js/es/reflect';
import 'zone.js/dist/zone'; import 'zone.js';

View File

@@ -55,7 +55,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,