#8 upgraded to angular 9

This commit is contained in:
fabio.formosa
2020-05-02 17:39:17 +02:00
parent f5b046f7eb
commit 25afc76ced
8 changed files with 36 additions and 27 deletions

View File

@@ -11,6 +11,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "../server/src/main/resources/static", "outputPath": "../server/src/main/resources/static",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
@@ -27,6 +28,12 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
@@ -119,7 +126,7 @@
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"prefix": "app", "prefix": "app",
"styleext": "css" "style": "css"
}, },
"@schematics/angular:directive": { "@schematics/angular:directive": {
"prefix": "app" "prefix": "app"

View File

@@ -12,18 +12,18 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "8.2.14", "@angular/animations": "9.1.4",
"@angular/cdk": "7.3.7", "@angular/cdk": "7.3.7",
"@angular/common": "8.2.14", "@angular/common": "9.1.4",
"@angular/compiler": "8.2.14", "@angular/compiler": "9.1.4",
"@angular/core": "8.2.14", "@angular/core": "9.1.4",
"@angular/flex-layout": "7.0.0-beta.24", "@angular/flex-layout": "9.0.0-beta.29",
"@angular/forms": "8.2.14", "@angular/forms": "9.1.4",
"@angular/material": "7.3.7", "@angular/material": "7.3.7",
"@angular/platform-browser": "8.2.14", "@angular/platform-browser": "9.1.4",
"@angular/platform-browser-dynamic": "8.2.14", "@angular/platform-browser-dynamic": "9.1.4",
"@angular/platform-server": "8.2.14", "@angular/platform-server": "9.1.4",
"@angular/router": "8.2.14", "@angular/router": "9.1.4",
"@fortawesome/fontawesome": "^1.1.4", "@fortawesome/fontawesome": "^1.1.4",
"@fortawesome/fontawesome-free-regular": "^5.0.8", "@fortawesome/fontawesome-free-regular": "^5.0.8",
"@fortawesome/fontawesome-free-solid": "^5.0.8", "@fortawesome/fontawesome-free-solid": "^5.0.8",
@@ -33,20 +33,20 @@
"net": "^1.0.2", "net": "^1.0.2",
"rxjs": "6.5.5", "rxjs": "6.5.5",
"stompjs": "^2.3.3", "stompjs": "^2.3.3",
"tslib": "^1.9.0", "tslib": "^1.10.0",
"zone.js": "~0.9.1" "zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.803.25", "@angular-devkit/build-angular": "~0.901.4",
"@angular-devkit/core": "^0.2.0", "@angular-devkit/core": "^9.1.4",
"@angular/cli": "8.3.26", "@angular/cli": "9.1.4",
"@angular/compiler-cli": "8.2.14", "@angular/compiler-cli": "9.1.4",
"@angular/language-service": "8.2.14", "@angular/language-service": "9.1.4",
"@types/hammerjs": "2.0.34", "@types/hammerjs": "2.0.34",
"@types/jasmine": "2.5.54", "@types/jasmine": "2.5.54",
"@types/jasminewd2": "2.0.3", "@types/jasminewd2": "2.0.3",
"@types/node": "6.0.90", "@types/node": "^12.11.1",
"codelyzer": "^5.0.1", "codelyzer": "^5.1.2",
"jasmine-core": "2.6.4", "jasmine-core": "2.6.4",
"jasmine-spec-reporter": "4.1.1", "jasmine-spec-reporter": "4.1.1",
"karma": "1.7.1", "karma": "1.7.1",
@@ -58,6 +58,6 @@
"protractor": "5.1.2", "protractor": "5.1.2",
"ts-node": "3.0.6", "ts-node": "3.0.6",
"tslint": "5.7.0", "tslint": "5.7.0",
"typescript": "3.5.3" "typescript": "3.8.3"
} }
} }

View File

@@ -3,6 +3,7 @@ import { WebsocketService } from '.';
import { SocketOption } from '../model/SocketOption.model'; import { SocketOption } from '../model/SocketOption.model';
Injectable() Injectable()
@Injectable()
export class LogsWebsocketService extends WebsocketService { export class LogsWebsocketService extends WebsocketService {
constructor(){ constructor(){

View File

@@ -3,6 +3,7 @@ import { WebsocketService } from '.';
import { SocketOption } from '../model/SocketOption.model'; import { SocketOption } from '../model/SocketOption.model';
Injectable() Injectable()
@Injectable()
export class ProgressWebsocketService extends WebsocketService { export class ProgressWebsocketService extends WebsocketService {
constructor(){ constructor(){

View File

@@ -1,5 +1,4 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Headers } from '@angular/http';
import { ApiService } from './api.service'; import { ApiService } from './api.service';
@Injectable() @Injectable()

View File

@@ -1,5 +1,4 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Headers } from '@angular/http';
import { ApiService } from './api.service'; import { ApiService } from './api.service';
import { ConfigService } from './config.service'; import { ConfigService } from './config.service';

View File

@@ -1,5 +1,4 @@
import { Injectable, OnInit } from '@angular/core'; import { Injectable, OnInit } from '@angular/core';
import { Headers } from '@angular/http';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';

View File

@@ -5,8 +5,11 @@
"baseUrl": "", "baseUrl": "",
"types": [] "types": []
}, },
"exclude": [ "files": [
"test.ts", "main.ts",
"**/*.spec.ts" "polyfills.ts"
],
"include": [
"src/**/*.d.ts"
] ]
} }