diff --git a/ponyracer/README.md b/ponyracer/README.md index 5117bf5..ef5302b 100644 --- a/ponyracer/README.md +++ b/ponyracer/README.md @@ -1,6 +1,6 @@ # Ponyracer -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.28. +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0-next.0. ## Development server diff --git a/ponyracer/angular.json b/ponyracer/angular.json index 76fcb9f..d23fc5c 100644 --- a/ponyracer/angular.json +++ b/ponyracer/angular.json @@ -14,6 +14,11 @@ "options": { "tsConfig": "projects/ponyracer-lib/tsconfig.lib.json", "project": "projects/ponyracer-lib/ng-package.json" + }, + "configurations": { + "production": { + "tsConfig": "projects/ponyracer-lib/tsconfig.lib.prod.json" + } } }, "test": { diff --git a/ponyracer/package.json b/ponyracer/package.json index 523085b..dc11570 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -11,40 +11,39 @@ }, "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", + "@angular/animations": "~9.0.0-next.3", + "@angular/common": "~9.0.0-next.3", + "@angular/compiler": "~9.0.0-next.3", + "@angular/core": "~9.0.0-next.3", + "@angular/forms": "~9.0.0-next.3", + "@angular/platform-browser": "~9.0.0-next.3", + "@angular/platform-browser-dynamic": "~9.0.0-next.3", + "@angular/router": "~9.0.0-next.3", "rxjs": "~6.4.0", "tslib": "^1.10.0", - "zone.js": "~0.9.1" + "zone.js": "~0.10.1" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.803.28", - "@angular-devkit/build-ng-packagr": "~0.803.28", - "@angular/cli": "~8.3.28", - "@angular/compiler-cli": "~8.2.14", - "@angular/language-service": "~8.2.14", + "@angular-devkit/build-angular": "~0.900.0-rc.11", + "@angular-devkit/build-ng-packagr": "~0.900.0-rc.11", + "@angular/cli": "~9.0.0-next.0", + "@angular/compiler-cli": "~9.0.0-next.3", + "@angular/language-service": "~9.0.0-next.3", "@types/node": "~8.9.4", - "@types/jasmine": "~3.3.8", + "@types/jasmine": "~3.4.0", "@types/jasminewd2": "~2.0.3", - "codelyzer": "^5.0.0", + "codelyzer": "^5.1.0", "jasmine-core": "~3.4.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.2.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", - "ng-packagr": "^5.4.0", - "protractor": "~7.0.0", - "ts-node": "~7.0.0", - "tsickle": "^0.37.0", - "tslint": "~5.15.0", + "karma-jasmine-html-reporter": "^1.4.2", + "ng-packagr": "^9.0.0-rc.7", + "protractor": "~5.4.2", + "ts-node": "~8.3.0", + "tslint": "~5.18.0", "typescript": "~3.5.3" } } diff --git a/ponyracer/projects/ponyracer-lib/README.md b/ponyracer/projects/ponyracer-lib/README.md index 44c9b20..2c39f10 100644 --- a/ponyracer/projects/ponyracer-lib/README.md +++ b/ponyracer/projects/ponyracer-lib/README.md @@ -1,6 +1,6 @@ # PonyracerLib -This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14. +This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0-rc.11. ## Code scaffolding diff --git a/ponyracer/projects/ponyracer-lib/package.json b/ponyracer/projects/ponyracer-lib/package.json index 0400996..cc544c4 100644 --- a/ponyracer/projects/ponyracer-lib/package.json +++ b/ponyracer/projects/ponyracer-lib/package.json @@ -2,7 +2,8 @@ "name": "ponyracer-lib", "version": "0.0.1", "peerDependencies": { - "@angular/common": "^8.2.14", - "@angular/core": "^8.2.14" + "@angular/common": "^9.0.0-rc.11", + "@angular/core": "^9.0.0-rc.11", + "tslib": "^1.10.0" } } \ No newline at end of file diff --git a/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.component.ts b/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.component.ts index 530534c..84939ac 100644 --- a/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.component.ts +++ b/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.component.ts @@ -13,7 +13,7 @@ export class PonyracerLibComponent implements OnInit { constructor() { } - ngOnInit() { + ngOnInit(): void { } } diff --git a/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.service.spec.ts b/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.service.spec.ts index 124ea59..74c543e 100644 --- a/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.service.spec.ts +++ b/ponyracer/projects/ponyracer-lib/src/lib/ponyracer-lib.service.spec.ts @@ -3,10 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { PonyracerLibService } from './ponyracer-lib.service'; describe('PonyracerLibService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + let service: PonyracerLibService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(PonyracerLibService); + }); it('should be created', () => { - const service: PonyracerLibService = TestBed.get(PonyracerLibService); expect(service).toBeTruthy(); }); }); diff --git a/ponyracer/projects/ponyracer-lib/src/test.ts b/ponyracer/projects/ponyracer-lib/src/test.ts index 978c64f..303b32a 100644 --- a/ponyracer/projects/ponyracer-lib/src/test.ts +++ b/ponyracer/projects/ponyracer-lib/src/test.ts @@ -8,7 +8,12 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: any; +declare const require: { + context(path: string, deep?: boolean, filter?: RegExp): { + keys(): string[]; + (id: string): T; + }; +}; // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( diff --git a/ponyracer/projects/ponyracer-lib/tsconfig.lib.json b/ponyracer/projects/ponyracer-lib/tsconfig.lib.json index bd23948..4b5d4af 100644 --- a/ponyracer/projects/ponyracer-lib/tsconfig.lib.json +++ b/ponyracer/projects/ponyracer-lib/tsconfig.lib.json @@ -12,11 +12,8 @@ ] }, "angularCompilerOptions": { - "annotateForClosureCompiler": true, "skipTemplateCodegen": true, "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, "enableResourceInlining": true }, "exclude": [ diff --git a/ponyracer/projects/ponyracer-lib/tsconfig.lib.prod.json b/ponyracer/projects/ponyracer-lib/tsconfig.lib.prod.json new file mode 100644 index 0000000..cbae794 --- /dev/null +++ b/ponyracer/projects/ponyracer-lib/tsconfig.lib.prod.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.lib.json", + "angularCompilerOptions": { + "enableIvy": false + } +} diff --git a/ponyracer/tsconfig.json b/ponyracer/tsconfig.json index 3531048..f3ddfbd 100644 --- a/ponyracer/tsconfig.json +++ b/ponyracer/tsconfig.json @@ -20,10 +20,8 @@ ], "paths": { "ponyracer-lib": [ + "dist/ponyracer-lib/ponyracer-lib", "dist/ponyracer-lib" - ], - "ponyracer-lib/*": [ - "dist/ponyracer-lib/*" ] } }, diff --git a/ponyracer/tslint.json b/ponyracer/tslint.json index e770913..9c729f9 100644 --- a/ponyracer/tslint.json +++ b/ponyracer/tslint.json @@ -48,6 +48,7 @@ "no-non-null-assertion": true, "no-redundant-jsdoc": true, "no-switch-case-fall-through": true, + "no-use-before-declare": true, "no-var-requires": false, "object-literal-key-quotes": [ true,