diff --git a/ponyracer/angular.json b/ponyracer/angular.json index 852c35785..efed52553 100644 --- a/ponyracer/angular.json +++ b/ponyracer/angular.json @@ -1,6 +1,6 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, + "version": 1, "newProjectRoot": "projects", "projects": { "ponyracer": { @@ -18,7 +18,7 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", - "aot": false, + "aot": true, "assets": [ "src/favicon.ico", "src/assets" @@ -41,7 +41,6 @@ "sourceMap": false, "extractCss": true, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -122,4 +121,4 @@ } }}, "defaultProject": "ponyracer" -} \ No newline at end of file +} diff --git a/ponyracer/package.json b/ponyracer/package.json index c47b523b9..537e34f99 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -7,41 +7,42 @@ "build": "ng build", "test": "ng test", "lint": "ng lint", - "e2e": "ng e2e" + "e2e": "ng e2e", + "postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points" }, "private": true, "dependencies": { - "@angular/animations": "~8.2.14", - "@angular/common": "~8.2.14", - "@angular/compiler": "~8.2.14", - "@angular/core": "~8.2.14", - "@angular/forms": "~8.2.14", - "@angular/platform-browser": "~8.2.14", - "@angular/platform-browser-dynamic": "~8.2.14", - "@angular/router": "~8.2.14", - "rxjs": "~6.4.0", + "@angular/animations": "~9.0.0-next.14", + "@angular/common": "~9.0.0-next.14", + "@angular/compiler": "~9.0.0-next.14", + "@angular/core": "~9.0.0-next.14", + "@angular/forms": "~9.0.0-next.14", + "@angular/platform-browser": "~9.0.0-next.14", + "@angular/platform-browser-dynamic": "~9.0.0-next.14", + "@angular/router": "~9.0.0-next.14", + "rxjs": "~6.5.3", "tslib": "^1.10.0", - "zone.js": "~0.9.1" + "zone.js": "~0.10.2" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.803.28", - "@angular/cli": "~8.3.28", - "@angular/compiler-cli": "~8.2.14", - "@angular/language-service": "~8.2.14", - "@types/node": "~8.9.4", - "@types/jasmine": "~3.3.8", + "@angular-devkit/build-angular": "~0.900.0-next.18", + "@angular/cli": "~9.0.0-next.18", + "@angular/compiler-cli": "~9.0.0-next.14", + "@angular/language-service": "~9.0.0-next.14", + "@types/node": "^12.11.1", + "@types/jasmine": "~3.4.0", "@types/jasminewd2": "~2.0.3", - "codelyzer": "^5.0.0", - "jasmine-core": "~3.4.0", + "codelyzer": "^5.1.2", + "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~4.2.1", - "karma": "~4.1.0", - "karma-chrome-launcher": "~2.2.0", - "karma-coverage-istanbul-reporter": "~2.0.1", + "karma": "~4.3.0", + "karma-chrome-launcher": "~3.1.0", + "karma-coverage-istanbul-reporter": "~2.1.0", "karma-jasmine": "~2.0.1", - "karma-jasmine-html-reporter": "^1.4.0", - "protractor": "~7.0.0", - "ts-node": "~7.0.0", - "tslint": "~5.15.0", - "typescript": "~3.5.3" + "karma-jasmine-html-reporter": "^1.4.2", + "protractor": "~5.4.2", + "ts-node": "~8.3.0", + "tslint": "~5.18.0", + "typescript": "~3.6.4" } } diff --git a/ponyracer/src/app/app.component.html b/ponyracer/src/app/app.component.html index db93ca45e..343c5cc22 100644 --- a/ponyracer/src/app/app.component.html +++ b/ponyracer/src/app/app.component.html @@ -146,7 +146,7 @@ } svg#rocket-smoke { - height: 100vh; + height: calc(100vh - 95px); position: absolute; top: 10px; right: 180px; @@ -304,26 +304,12 @@ /> Welcome
- - - - - + + +ng generate component xyz
ng add @angular/material+
ng add @angular/pwa
ng add _____
ng test
ng build --proddiff --git a/ponyracer/src/app/app.component.spec.ts b/ponyracer/src/app/app.component.spec.ts index 4ecf59d6f..0e8e286d7 100644 --- a/ponyracer/src/app/app.component.spec.ts +++ b/ponyracer/src/app/app.component.spec.ts @@ -12,20 +12,20 @@ describe('AppComponent', () => { it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'ponyracer'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('ponyracer'); }); it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; + const compiled = fixture.nativeElement; expect(compiled.querySelector('.content span').textContent).toContain('ponyracer app is running!'); }); }); diff --git a/ponyracer/tsconfig.app.json b/ponyracer/tsconfig.app.json index 565a11a21..f758d9820 100644 --- a/ponyracer/tsconfig.app.json +++ b/ponyracer/tsconfig.app.json @@ -9,10 +9,6 @@ "src/polyfills.ts" ], "include": [ - "src/**/*.ts" - ], - "exclude": [ - "src/test.ts", - "src/**/*.spec.ts" + "src/**/*.d.ts" ] }