Skip to content

Commit

Permalink
feat(angular): upgrade angular 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Dec 9, 2020
1 parent ff1d363 commit 16224d2
Show file tree
Hide file tree
Showing 11 changed files with 6,140 additions and 4,490 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand Down
2 changes: 1 addition & 1 deletion e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es5",
"target": "es2018",
"types": [
"jasmine",
"jasminewd2",
Expand Down
10,477 changes: 6,036 additions & 4,441 deletions package-lock.json

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,43 @@
},
"private": true,
"dependencies": {
"@angular/animations": "9.0.2",
"@angular/common": "9.0.2",
"@angular/compiler": "9.0.2",
"@angular/core": "9.0.2",
"@angular/forms": "9.0.2",
"@angular/platform-browser": "9.0.2",
"@angular/platform-browser-dynamic": "9.0.2",
"@angular/router": "9.0.2",
"@angular/animations": "11.0.3",
"@angular/common": "11.0.3",
"@angular/compiler": "11.0.3",
"@angular/core": "11.0.3",
"@angular/forms": "11.0.3",
"@angular/platform-browser": "11.0.3",
"@angular/platform-browser-dynamic": "11.0.3",
"@angular/router": "11.0.3",
"bootstrap": "4.4.1",
"ngx-bootstrap": "5.3.2",
"@fortawesome/angular-fontawesome": "0.6.0",
"@fortawesome/fontawesome-svg-core": "1.2.27",
"@fortawesome/free-solid-svg-icons": "5.12.1",
"@fortawesome/angular-fontawesome": "0.8.0",
"@fortawesome/fontawesome-svg-core": "1.2.32",
"@fortawesome/free-solid-svg-icons": "5.15.1",
"angular2-moment": "1.9.0",
"rxjs": "6.5.4",
"tslib": "1.11.0",
"zone.js": "0.10.2"
"rxjs": "6.6.3",
"tslib": "^2.0.0",
"zone.js": "0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.900.3",
"@angular/cli": "9.0.3",
"@angular/compiler-cli": "9.0.2",
"@angular/language-service": "9.0.2",
"@angular-devkit/build-angular": "0.1100.3",
"@angular/cli": "11.0.3",
"@angular/compiler-cli": "11.0.3",
"@angular/language-service": "11.0.3",
"@types/node": "12.12.28",
"@types/jasmine": "3.5.6",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "2.0.8",
"codelyzer": "5.2.1",
"jasmine-core": "3.5.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "4.4.1",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "2.1.1",
"karma-jasmine": "3.3.1",
"karma-jasmine-html-reporter": "1.5.2",
"protractor": "5.4.3",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "8.8.1",
"tslint": "5.20.1",
"typescript": "3.7.5"
"tslint": "~6.1.0",
"typescript": "4.0.5"
}
}
4 changes: 2 additions & 2 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { TestBed, async } from '@angular/core/testing';
import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
Expand Down
3 changes: 1 addition & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ import { Component } from '@angular/core';
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
}
export class AppComponent {}
4 changes: 2 additions & 2 deletions src/app/repo/repo.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';

import { RepoComponent } from './repo.component';
import { MomentModule } from 'angular2-moment';
Expand All @@ -8,7 +8,7 @@ describe('RepoComponent', () => {
let component: RepoComponent;
let fixture: ComponentFixture<RepoComponent>;

beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ RepoComponent ],
imports: [
Expand Down
11 changes: 2 additions & 9 deletions src/app/repo/repo.component.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
import { Component, OnInit, Input } from '@angular/core';
import { Component, Input } from '@angular/core';
import { faStar, IconDefinition } from '@fortawesome/free-solid-svg-icons';

@Component({
selector: 'app-repo',
templateUrl: './repo.component.html',
styleUrls: ['./repo.component.scss']
})
export class RepoComponent implements OnInit {

export class RepoComponent {
@Input() name: string;
@Input() stars: number;
@Input() created: Date;
@Input() description: string;
@Input() fullName: string;

faStar: IconDefinition = faStar;

constructor() { }

ngOnInit(): void {
}

}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
Expand Down
66 changes: 65 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"extends": "tslint:recommended",
"rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false,
"arrow-parens": false,
"arrow-return-shorthand": true,
"deprecation": {
"severity": "warning"
},
"component-class-suffix": true,
"contextual-lifecycle": true,
"curly": true,
"directive-class-suffix": true,
"directive-selector": [
true,
Expand All @@ -21,10 +29,17 @@
"app",
"kebab-case"
],
"eofline": true,
"import-blacklist": [
true,
"rxjs/Rx"
],
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [
Expand Down Expand Up @@ -79,11 +94,60 @@
"no-output-native": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"no-outputs-metadata-property": true,
"template-banana-in-box": true,
"template-no-negated-async": true,
"typedef-whitespace": {
"options": [
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true
"use-pipe-transform-interface": true,
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
},
"rulesDirectory": [
"codelyzer"
Expand Down

0 comments on commit 16224d2

Please sign in to comment.