misc/ Upgrade to Angular 13.0.0

This commit is contained in:
Maxime GRIS
2021-11-17 15:46:54 +01:00
parent 7a4f527241
commit 99e9f35b37
6 changed files with 1325 additions and 3935 deletions

1
.gitignore vendored
View File

@@ -31,6 +31,7 @@ node_modules
!.vscode/extensions.json !.vscode/extensions.json
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@@ -14,11 +14,11 @@
# Introduction # Introduction
Bootstrap and package your project with Angular 12 and Electron 16 (Typescript + SASS + Hot Reload) for creating Desktop applications. Bootstrap and package your project with Angular 13 and Electron 16 (Typescript + SASS + Hot Reload) for creating Desktop applications.
Currently runs with: Currently runs with:
- Angular v12.1.2 - Angular v13.0.0
- Electron v16.0.0 - Electron v16.0.0
With this sample, you can: With this sample, you can:
@@ -151,7 +151,8 @@ Please note that Hot reload is only available in Renderer process.
- 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 : Branch [angular11](https://github.com/maximegris/angular-electron/tree/angular11) - Angular 11 & Electron 12 : Branch [angular11](https://github.com/maximegris/angular-electron/tree/angular11)
- Angular 12 & Electron 16 : (master) - Angular 12 & Electron 16 : Branch [angular12](https://github.com/maximegris/angular-electron/tree/angular12)
- Angular 13 & Electron 16 : (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

5176
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": "10.4.0", "version": "10.4.0",
"description": "Angular 12 with Electron 16 (Typescript + SASS + Hot Reload)", "description": "Angular 13 with Electron 16 (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 12", "angular 13",
"electron", "electron",
"electron 16", "electron 16",
"nodejs", "nodejs",
@@ -43,34 +43,34 @@
"lint": "ng lint" "lint": "ng lint"
}, },
"dependencies": { "dependencies": {
"@angular/common": "12.2.13", "@angular/common": "13.0.1",
"@angular/compiler": "12.2.13", "@angular/compiler": "13.0.1",
"@angular/core": "12.2.13", "@angular/core": "13.0.1",
"@angular/forms": "12.2.13", "@angular/forms": "13.0.1",
"@angular/language-service": "12.2.13", "@angular/language-service": "13.0.1",
"@angular/platform-browser": "12.2.13", "@angular/platform-browser": "13.0.1",
"@angular/platform-browser-dynamic": "12.2.13", "@angular/platform-browser-dynamic": "13.0.1",
"@angular/router": "12.2.13", "@angular/router": "13.0.1",
"rxjs": "~6.6.0", "rxjs": "7.4.0",
"tslib": "^2.1.0", "tslib": "^2.1.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-builders/custom-webpack": "12.1.3", "@angular-builders/custom-webpack": "13.0.0",
"@angular-devkit/build-angular": "12.2.13", "@angular-devkit/build-angular": "13.0.2",
"@angular-eslint/builder": "12.6.1", "@angular-eslint/builder": "13.0.0-alpha.0",
"@angular-eslint/eslint-plugin": "12.6.1", "@angular-eslint/eslint-plugin": "13.0.0-alpha.0",
"@angular-eslint/eslint-plugin-template": "12.6.1", "@angular-eslint/eslint-plugin-template": "13.0.0-alpha.0",
"@angular-eslint/schematics": "12.6.1", "@angular-eslint/schematics": "13.0.0-alpha.0",
"@angular-eslint/template-parser": "12.6.1", "@angular-eslint/template-parser": "13.0.0-alpha.0",
"@angular/cli": "12.2.13", "@angular/cli": "13.0.2",
"@angular/compiler-cli": "12.2.13", "@angular/compiler-cli": "13.0.1",
"@ngx-translate/core": "13.0.0", "@ngx-translate/core": "14.0.0",
"@ngx-translate/http-loader": "6.0.0", "@ngx-translate/http-loader": "7.0.0",
"@playwright/test": "1.16.3", "@playwright/test": "1.16.3",
"@types/jasmine": "3.8.1", "@types/jasmine": "3.10.2",
"@types/jasminewd2": "2.0.10", "@types/jasminewd2": "2.0.10",
"@types/node": "16.3.3", "@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "4.28.3", "@typescript-eslint/eslint-plugin": "4.28.3",
"@typescript-eslint/parser": "4.28.3", "@typescript-eslint/parser": "4.28.3",
"conventional-changelog-cli": "2.1.1", "conventional-changelog-cli": "2.1.1",
@@ -78,22 +78,22 @@
"electron-builder": "22.13.1", "electron-builder": "22.13.1",
"electron-reload": "1.5.0", "electron-reload": "1.5.0",
"eslint": "7.30.0", "eslint": "7.30.0",
"eslint-plugin-import": "2.23.4", "eslint-plugin-import": "2.25.3",
"eslint-plugin-jsdoc": "35.4.3", "eslint-plugin-jsdoc": "37.0.3",
"eslint-plugin-prefer-arrow": "1.2.3", "eslint-plugin-prefer-arrow": "1.2.3",
"jasmine-core": "3.8.0", "jasmine-core": "3.10.1",
"jasmine-spec-reporter": "7.0.0", "jasmine-spec-reporter": "7.0.0",
"karma": "6.3.4", "karma": "6.3.9",
"karma-coverage-istanbul-reporter": "3.0.3", "karma-coverage-istanbul-reporter": "3.0.3",
"karma-electron": "7.0.0", "karma-electron": "7.1.0",
"karma-jasmine": "4.0.1", "karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0", "karma-jasmine-html-reporter": "1.7.0",
"nan": "2.14.2", "nan": "2.14.2",
"node-polyfill-webpack-plugin": "1.1.4", "node-polyfill-webpack-plugin": "1.1.4",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"playwright": "1.16.3", "playwright": "1.16.3",
"ts-node": "10.1.0", "ts-node": "10.4.0",
"typescript": "~4.2.0", "typescript": "~4.4.4",
"wait-on": "6.0.0", "wait-on": "6.0.0",
"webdriver-manager": "12.1.8" "webdriver-manager": "12.1.8"
}, },

View File

@@ -18,16 +18,6 @@
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags

View File

@@ -12,7 +12,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);