Skip to content

Commit e9c2dfa

Browse files
committed
chore(): update to angular 8
1 parent 00c1351 commit e9c2dfa

File tree

8 files changed

+2324
-2415
lines changed

8 files changed

+2324
-2415
lines changed

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

browserslist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
12+
not IE 9-11 # For IE 9-11 support, remove 'not'.

package-lock.json

Lines changed: 2250 additions & 2339 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,55 +15,54 @@
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/animations": "7.2.15",
19-
"@angular/common": "7.2.15",
20-
"@angular/core": "7.2.15",
21-
"@angular/forms": "7.2.15",
22-
"@angular/http": "7.2.15",
23-
"@angular/platform-browser": "7.2.15",
24-
"@angular/platform-browser-dynamic": "7.2.15",
25-
"@angular/pwa": "0.13.8",
26-
"@angular/router": "7.2.15",
27-
"@angular/service-worker": "7.2.15",
28-
"@fivethree/core": "0.8.12",
29-
"@fivethree/lottie": "0.1.0",
30-
"@ionic-native/core": "5.9.0",
31-
"@ionic-native/splash-screen": "5.9.0",
32-
"@ionic-native/status-bar": "5.9.0",
33-
"@ionic/angular": "4.6.0",
18+
"@angular/animations": "8.1.3",
19+
"@angular/common": "8.1.3",
20+
"@angular/core": "8.1.3",
21+
"@angular/forms": "8.1.3",
22+
"@angular/platform-browser": "8.1.3",
23+
"@angular/platform-browser-dynamic": "8.1.3",
24+
"@angular/pwa": "0.801.2",
25+
"@angular/router": "8.1.3",
26+
"@angular/service-worker": "8.1.3",
27+
"@fivethree/core": "0.8.25",
28+
"@fivethree/lottie": "0.2.0",
29+
"@ionic-native/core": "5.10.0",
30+
"@ionic-native/splash-screen": "5.10.0",
31+
"@ionic-native/status-bar": "5.10.0",
32+
"@ionic/angular": "4.7.0",
3433
"@ngx-translate/core": "11.0.1",
3534
"@ngx-translate/http-loader": "4.0.0",
3635
"core-js": "2.6.5",
3736
"hammerjs": "2.0.8",
38-
"lottie-web": "5.5.6",
39-
"ngx-markdown": "7.1.5",
37+
"lottie-web": "5.5.7",
4038
"rxjs": "6.5.2",
41-
"zone.js": "0.8.29"
39+
"zone.js": "0.9.1"
4240
},
4341
"devDependencies": {
44-
"@angular-devkit/architect": "0.13.8",
45-
"@angular-devkit/build-angular": "0.13.8",
46-
"@angular-devkit/core": "7.3.8",
47-
"@angular-devkit/schematics": "7.3.8",
48-
"@angular/cli": "7.3.8",
49-
"@angular/compiler": "7.2.13",
50-
"@angular/compiler-cli": "7.2.13",
51-
"@angular/language-service": "7.2.13",
52-
"@ionic/angular-toolkit": "1.5.1",
53-
"@types/node": "10.12.18",
42+
"@angular-devkit/architect": "0.801.2",
43+
"@angular-devkit/build-angular": "0.801.2",
44+
"@angular-devkit/core": "8.1.2",
45+
"@angular-devkit/schematics": "8.1.2",
46+
"@angular/cli": "8.1.2",
47+
"@angular/compiler": "8.1.3",
48+
"@angular/compiler-cli": "8.1.3",
49+
"@angular/language-service": "8.1.3",
50+
"@ionic/angular-toolkit": "2.0.0",
5451
"@types/jasmine": "3.3.9",
5552
"@types/jasminewd2": "2.0.6",
56-
"codelyzer": "4.5.0",
53+
"@types/node": "10.12.18",
54+
"codelyzer": "5.0.1",
5755
"jasmine-core": "3.3.0",
5856
"jasmine-spec-reporter": "4.2.1",
5957
"karma": "4.0.0",
6058
"karma-chrome-launcher": "2.2.0",
6159
"karma-coverage-istanbul-reporter": "2.0.5",
6260
"karma-jasmine": "2.0.1",
6361
"karma-jasmine-html-reporter": "1.4.0",
62+
"prettier": "~1.18.2",
6463
"protractor": "5.4.2",
6564
"ts-node": "8.0.2",
6665
"tslint": "5.18.0",
67-
"typescript": "3.2.4"
66+
"typescript": "3.4.5"
6867
}
6968
}

src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
33

44
const routes: Routes = [
5-
{ path: '', loadChildren: './pages/home/home.module#HomePageModule' },
6-
{ path: '**', loadChildren: './pages/page-not-found/page-not-found.module#PageNotFoundPageModule' },
5+
{ path: '', loadChildren: () => import('./pages/home/home.module').then(m => m.HomePageModule) },
6+
{ path: '**', loadChildren: () => import('./pages/page-not-found/page-not-found.module').then(m => m.PageNotFoundPageModule) },
77
];
88

99
@NgModule({

src/polyfills.ts

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,57 +18,40 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
22-
// import 'core-js/es6/symbol';
23-
// import 'core-js/es6/object';
24-
// import 'core-js/es6/function';
25-
// import 'core-js/es6/parse-int';
26-
// import 'core-js/es6/parse-float';
27-
// import 'core-js/es6/number';
28-
// import 'core-js/es6/math';
29-
// import 'core-js/es6/string';
30-
// import 'core-js/es6/date';
31-
// import 'core-js/es6/array';
32-
// import 'core-js/es6/regexp';
33-
// import 'core-js/es6/map';
34-
// import 'core-js/es6/weak-map';
35-
// import 'core-js/es6/set';
36-
37-
/**
38-
* If the application will be indexed by Google Search, the following is required.
39-
* Googlebot uses a renderer based on Chrome 41.
40-
* https://developers.google.com/search/docs/guides/rendering
41-
**/
42-
// import 'core-js/es6/array';
43-
4421
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
4522
// import 'classlist.js'; // Run `npm install --save classlist.js`.
4623

47-
/** IE10 and IE11 requires the following for the Reflect API. */
48-
// import 'core-js/es6/reflect';
49-
5024
/**
5125
* Web Animations `@angular/platform-browser/animations`
5226
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
5327
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
54-
**/
28+
*/
5529
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5630

5731
/**
5832
* By default, zone.js will patch all possible macroTask and DomEvents
5933
* user can disable parts of macroTask/DomEvents patch by setting following flags
34+
* because those flags need to be set before `zone.js` being loaded, and webpack
35+
* will put import in the top of bundle, so user need to create a separate file
36+
* in this directory (for example: zone-flags.ts), and put the following flags
37+
* into that file, and then add the following code before importing zone.js.
38+
* import './zone-flags.ts';
39+
*
40+
* The flags allowed in zone-flags.ts are listed here.
41+
*
42+
* The following flags will work for all browsers.
43+
*
44+
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
45+
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
46+
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
47+
*
48+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
49+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
50+
*
51+
* (window as any).__Zone_enable_cross_context_check = true;
52+
*
6053
*/
6154

62-
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
63-
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
64-
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
65-
66-
/*
67-
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
68-
* with the following flag, it will bypass `zone.js` patch for IE/Edge
69-
*/
70-
// (window as any).__Zone_enable_cross_context_check = true;
71-
7255
/***************************************************************************************************
7356
* Zone JS is required by default for Angular itself.
7457
*/

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"compileOnSave": false,
33
"compilerOptions": {
44
"baseUrl": "./",
5+
"downlevelIteration": true,
56
"outDir": "./dist/out-tsc",
67
"sourceMap": true,
78
"declaration": false,
8-
"module": "es2015",
9+
"module": "esnext",
910
"moduleResolution": "node",
1011
"emitDecoratorMetadata": true,
1112
"experimentalDecorators": true,
12-
"target": "es5",
13+
"target": "es2015",
1314
"paths": {
1415
"@configs/*": [
1516
"src/configs/*"

tslint.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@
126126
"kebab-case"
127127
],
128128
"no-output-on-prefix": true,
129-
"use-input-property-decorator": true,
130-
"use-output-property-decorator": true,
131-
"use-host-property-decorator": true,
129+
"no-inputs-metadata-property": true,
130+
"no-outputs-metadata-property": true,
131+
"no-host-metadata-property": true,
132132
"no-input-rename": true,
133133
"no-output-rename": true,
134-
"use-life-cycle-interface": true,
134+
"use-lifecycle-interface": true,
135135
"use-pipe-transform-interface": true,
136136
"directive-class-suffix": true
137137
}

0 commit comments

Comments
 (0)