chore: update angular and electron

This commit is contained in:
4gray authored and GitHub committed 2021-12-09 18:29:54 +00:00
1 parent 4aaed1cf98
commit b459bc1d15
5 files changed
+5854 -8384

No files matched your search

+19 -8
View File
@@ -1,24 +1,35 @@
//Polyfill Node.js core modules in Webpack. This module is only needed for webpack 5+.
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
/**
* Custom angular webpack configuration
*/
module.exports = (config, options) => {
config.target = 'electron-renderer';
if (options.customWebpackConfig.target) {
config.target = options.customWebpackConfig.target;
} else if (options.fileReplacements) {
for(let fileReplacement of options.fileReplacements) {
if (options.fileReplacements) {
for (let fileReplacement of options.fileReplacements) {
if (fileReplacement.replace !== 'src/environments/environment.ts') {
continue;
}
let fileReplacementParts = fileReplacement['with'].split('.');
if (['dev', 'prod', 'test', 'electron-renderer'].indexOf(fileReplacementParts[1]) < 0) {
config.target = fileReplacementParts[1];
if (
fileReplacementParts.length > 1 &&
['web'].indexOf(fileReplacementParts[1]) >= 0
) {
config.target = 'web';
}
break;
}
}
config.plugins = [
...config.plugins,
new NodePolyfillPlugin({
excludeAliases: ['console'],
}),
];
return config;
}
};
+5777 -8311
View File
File diff suppressed because it is too large. Load diff
+57 -52
View File
@@ -43,23 +43,57 @@
"version": "conventional-changelog -i CHANGELOG.md -p angular -s -r 0 && git add CHANGELOG.md",
"lint": "ng lint"
},
"dependencies": {
"@angular/animations": "13.0.3",
"@angular/cdk": "13.0.3",
"@angular/flex-layout": "13.0.0-beta.36",
"@angular/material": "13.0.3",
"@datorama/akita": "5.2.6",
"@electron/remote": "2.0.1",
"@ngx-pwa/local-storage": "12.1.0",
"@types/video.js": "7.3.27",
"@types/videojs-hls-quality-selector": "1.1.0",
"@videojs/http-streaming": "2.11.1",
"@yangkghjh/videojs-aspect-ratio-panel": "0.0.1",
"about-window": "1.13.4",
"axios": "0.21.2",
"custom-electron-titlebar": "3.2.5",
"electron": "16.0.0",
"epg-parser": "0.1.1",
"hls.js": "1.0.11",
"iptv-playlist-parser": "0.8.0",
"lodash": "4.17.21",
"material-icons": "0.3.1",
"moment": "2.29.1",
"nedb": "1.8.0",
"nedb-promises-ts": "0.0.1-4",
"ngx-filter-pipe": "2.1.2",
"ngx-uploader": "11.0.0",
"ngx-whats-new": "0.1.0",
"node-polyfill-webpack-plugin": "1.1.4",
"semver": "7.3.5",
"uuid": "8.3.2",
"videojs-contrib-quality-levels": "2.1.0",
"videojs-hls-quality-selector": "1.1.4",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-builders/custom-webpack": "12.1.0",
"@angular-devkit/build-angular": "12.1.0",
"@angular-eslint/builder": "12.5.0",
"@angular-eslint/eslint-plugin": "12.5.0",
"@angular-eslint/eslint-plugin-template": "12.5.0",
"@angular-eslint/template-parser": "12.5.0",
"@angular/cli": "12.1.0",
"@angular/common": "12.1.0",
"@angular/compiler": "12.1.0",
"@angular/compiler-cli": "12.1.0",
"@angular/core": "12.1.0",
"@angular/forms": "12.1.0",
"@angular/language-service": "12.1.0",
"@angular/platform-browser": "12.1.0",
"@angular/platform-browser-dynamic": "12.1.0",
"@angular/router": "12.1.0",
"@angular-builders/custom-webpack": "13.0.0",
"@angular-devkit/build-angular": "13.0.4",
"@angular-eslint/builder": "13.0.1",
"@angular-eslint/eslint-plugin": "13.0.1",
"@angular-eslint/eslint-plugin-template": "13.0.1",
"@angular-eslint/template-parser": "13.0.1",
"@angular/cli": "13.0.4",
"@angular/common": "13.0.3",
"@angular/compiler": "13.0.3",
"@angular/compiler-cli": "13.0.3",
"@angular/core": "13.0.3",
"@angular/forms": "13.0.3",
"@angular/language-service": "13.0.3",
"@angular/platform-browser": "13.0.3",
"@angular/platform-browser-dynamic": "13.0.3",
"@angular/router": "13.0.3",
"@commitlint/cli": "12.1.4",
"@commitlint/config-conventional": "12.1.4",
"@ngx-translate/core": "13.0.0",
@@ -71,7 +105,7 @@
"@types/jasminewd2": "2.0.8",
"@types/jest": "26.0.14",
"@types/mocha": "7.0.2",
"@types/node": "12.12.6",
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "5.1.0",
"@typescript-eslint/eslint-plugin-tslint": "5.1.0",
"@typescript-eslint/parser": "5.1.0",
@@ -99,46 +133,14 @@
"stylelint-scss": "3.19.0",
"ts-node": "8.10.2",
"tslib": "2.3.0",
"typescript": "4.3.4",
"typescript": "4.4.4",
"video.js": "7.15.4",
"wait-on": "5.2.1",
"webdriver-manager": "12.1.8",
"zone.js": "~0.11.4"
"webdriver-manager": "12.1.8"
},
"engines": {
"node": ">=10.13.0"
},
"dependencies": {
"@angular/animations": "12.1.0",
"@angular/cdk": "12.1.0",
"@angular/flex-layout": "12.0.0-beta.34",
"@angular/material": "12.1.0",
"@datorama/akita": "5.2.6",
"@ngx-pwa/local-storage": "12.1.0",
"@types/video.js": "7.3.27",
"@types/videojs-hls-quality-selector": "1.1.0",
"@videojs/http-streaming": "2.11.1",
"@yangkghjh/videojs-aspect-ratio-panel": "0.0.1",
"about-window": "1.13.4",
"axios": "0.21.2",
"custom-electron-titlebar": "3.2.5",
"electron": "11.5.0",
"epg-parser": "0.1.1",
"hls.js": "1.0.11",
"iptv-playlist-parser": "0.8.0",
"lodash": "4.17.21",
"material-icons": "0.3.1",
"moment": "2.29.1",
"nedb": "1.8.0",
"nedb-promises-ts": "0.0.1-4",
"ngx-filter-pipe": "2.1.2",
"ngx-uploader": "11.0.0",
"ngx-whats-new": "0.1.0",
"semver": "7.3.5",
"uuid": "8.3.2",
"videojs-contrib-quality-levels": "2.1.0",
"videojs-hls-quality-selector": "1.1.4"
},
"jest": {
"preset": "jest-preset-angular",
"setupFilesAfterEnv": [
@@ -151,5 +153,8 @@
"html",
"lcov"
]
}
},
"browserslist": [
"chrome 91"
]
}
-1
View File
@@ -1,2 +1 @@
import 'core-js/es/reflect';
import 'zone.js';
+1 -12
View File
@@ -18,16 +18,6 @@
* 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
* user can disable parts of macroTask/DomEvents patch by setting following flags
@@ -55,8 +45,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS