build: update Angular to v7.2.15 (#412)

- Update to Angular 7
- Update all dependencies to their latest versions
- Refactor tslint configuration and rules
- Update travis to use Angular 7
- Refactor forkJoin to remove tslint error

Fixes: #407
This commit is contained in:
Abhay Chawla
2019-12-01 23:20:51 +03:00
parent 963ec68527
commit 61606b09e9
7 changed files with 5882 additions and 4905 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ node_js:
before_script:
- npm i npm@latest -g
- npm install -g --silent @angular/cli@6.2.3
- npm install -g --silent @angular/cli@7.3.9
script:
- ng lint
+5859 -4839
View File
File diff suppressed because it is too large Load Diff
+51 -49
View File
@@ -24,62 +24,64 @@
"env": "ngx-scripts env npm_package_version"
},
"dependencies": {
"@angular/animations": "6.0.6",
"@angular/cdk": "6.3.0",
"@angular/common": "6.0.6",
"@angular/compiler": "6.0.6",
"@angular/core": "6.0.6",
"@angular/flex-layout": "6.0.0-beta.15",
"@angular/forms": "6.0.6",
"@angular/http": "6.0.6",
"@angular/material": "6.3.0",
"@angular/platform-browser": "6.0.6",
"@angular/platform-browser-dynamic": "6.0.6",
"@angular/router": "6.0.6",
"@angular/service-worker": "6.0.6",
"@fortawesome/angular-fontawesome": "0.1.1",
"@fortawesome/fontawesome-svg-core": "1.2.2",
"@fortawesome/free-solid-svg-icons": "5.2.0",
"@ngx-translate/core": "10.0.2",
"@swimlane/ngx-charts": "8.1.0",
"angular-archwizard": "3.0.0",
"core-js": "2.5.7",
"@angular/animations": "7.2.15",
"@angular/cdk": "7.3.7",
"@angular/common": "7.2.15",
"@angular/compiler": "7.2.15",
"@angular/core": "7.2.15",
"@angular/flex-layout": "7.0.0-beta.24",
"@angular/forms": "7.2.15",
"@angular/http": "7.2.15",
"@angular/material": "7.3.7",
"@angular/platform-browser": "7.2.15",
"@angular/platform-browser-dynamic": "7.2.15",
"@angular/router": "7.2.15",
"@angular/service-worker": "7.2.15",
"@fortawesome/angular-fontawesome": "0.3.0",
"@fortawesome/fontawesome-svg-core": "1.2.18",
"@fortawesome/free-solid-svg-icons": "5.8.2",
"@ngx-translate/core": "11.0.1",
"@swimlane/ngx-charts": "11.1.0",
"angular-archwizard": "4.0.0",
"core-js": "2.5.0",
"d3": "4.13.0",
"hammerjs": "2.0.8",
"lodash": "4.17.10",
"rxjs": "6.2.1",
"zone.js": "0.8.26"
"lodash": "4.17.11",
"rxjs": "6.5.2",
"tslib": "1.9.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.6.8",
"@angular/cli": "6.2.3",
"@angular/compiler-cli": "6.0.6",
"@angular/language-service": "6.0.6",
"@angular-devkit/build-angular": "0.13.9",
"@angular/cli": "7.3.9",
"@angular/compiler-cli": "7.2.15",
"@angular/language-service": "7.2.15",
"@biesbjerg/ngx-translate-extract": "2.3.4",
"@ngx-rocket/scripts": "2.2.0",
"@types/jasmine": "2.8.8",
"@types/jasminewd2": "2.0.3",
"@types/lodash": "4.14.110",
"@types/node": "8.10.20",
"codelyzer": "4.3.0",
"hads": "1.7.0",
"htmlhint": "0.10.1",
"@ngx-rocket/scripts": "3.0.3",
"@types/jasmine": "3.3.13",
"@types/jasminewd2": "2.0.6",
"@types/lodash": "4.14.132",
"@types/node": "12.0.3",
"codelyzer": "5.0.1",
"hads": "1.7.3",
"htmlhint": "0.11.0",
"https-proxy-agent": "2.2.1",
"jasmine-core": "2.99.1",
"jasmine-spec-reporter": "4.2.0",
"karma": "3.0.0",
"jasmine-core": "3.4.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "4.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "1.4.3",
"karma-jasmine": "1.1.2",
"karma-cli": "2.0.0",
"karma-coverage-istanbul-reporter": "2.0.5",
"karma-jasmine": "2.0.1",
"karma-junit-reporter": "1.2.0",
"protractor": "5.4.1",
"stylelint": "9.2.1",
"stylelint-config-recommended-scss": "3.2.0",
"stylelint-config-standard": "18.2.0",
"stylelint-scss": "3.1.3",
"ts-node": "6.0.5",
"tslint": "5.10.0",
"typescript": "2.7.2"
"protractor": "5.4.2",
"stylelint": "10.0.1",
"stylelint-config-recommended-scss": "3.3.0",
"stylelint-config-standard": "18.3.0",
"stylelint-scss": "3.6.1",
"ts-node": "8.2.0",
"tslint": "5.16.0",
"typescript": "3.2.4"
},
"repository": {
"type": "git",
@@ -24,10 +24,10 @@ export class ManageSchedulerJobsResolver implements Resolve<Object> {
* @returns {Observable<any>}
*/
resolve() {
return forkJoin(
return forkJoin([
this.systemService.getJobs(),
this.systemService.getScheduler()
);
]);
}
}
-45
View File
@@ -1,49 +1,4 @@
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
*/
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. */
// import 'core-js/es6/symbol';
// import 'core-js/es6/object';
// import 'core-js/es6/function';
// import 'core-js/es6/parse-int';
// import 'core-js/es6/parse-float';
// import 'core-js/es6/number';
// import 'core-js/es6/math';
// import 'core-js/es6/string';
// import 'core-js/es6/date';
// import 'core-js/es6/array';
// import 'core-js/es6/regexp';
// import 'core-js/es6/map';
// import 'core-js/es6/weak-map';
// import 'core-js/es6/set';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';
/** Evergreen browsers require these. */
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';
/**
+1
View File
@@ -2,6 +2,7 @@
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "src",
"importHelpers": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
+4 -5
View File
@@ -49,7 +49,6 @@
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
@@ -139,12 +138,12 @@
"kebab-case"
],
"no-output-on-prefix": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-inputs-metadata-property": true,
"no-outputs-metadata-property": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true