From d9f1896168c5e8f0a93cac6f96974b9075a5f66e Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Wed, 22 Jul 2020 22:11:12 +0000 Subject: [PATCH 1/2] chore: version 8.3.29 --- ponyracer/README.md | 2 +- ponyracer/package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ponyracer/README.md b/ponyracer/README.md index 5117bf5..d0287ef 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 8.3.29. ## Development server diff --git a/ponyracer/package.json b/ponyracer/package.json index 523085b..d7b0850 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -24,9 +24,9 @@ "zone.js": "~0.9.1" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.803.28", - "@angular-devkit/build-ng-packagr": "~0.803.28", - "@angular/cli": "~8.3.28", + "@angular-devkit/build-angular": "~0.803.29", + "@angular-devkit/build-ng-packagr": "~0.803.29", + "@angular/cli": "~8.3.29", "@angular/compiler-cli": "~8.2.14", "@angular/language-service": "~8.2.14", "@types/node": "~8.9.4", From 7e5cae2b25a19bacd91488c71369748d625877a4 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 31 Jan 2020 01:19:30 +0100 Subject: [PATCH 2/2] chore: version 9.0.0-next.0 --- ponyracer/README.md | 2 +- ponyracer/angular.json | 5 ++ ponyracer/package.json | 49 +++++++++---------- ponyracer/projects/ponyracer-lib/README.md | 2 +- ponyracer/projects/ponyracer-lib/package.json | 5 +- .../src/lib/ponyracer-lib.component.ts | 2 +- .../src/lib/ponyracer-lib.service.spec.ts | 8 ++- ponyracer/projects/ponyracer-lib/src/test.ts | 7 ++- .../projects/ponyracer-lib/tsconfig.lib.json | 3 -- .../ponyracer-lib/tsconfig.lib.prod.json | 6 +++ ponyracer/tsconfig.json | 4 +- ponyracer/tslint.json | 1 + 12 files changed, 55 insertions(+), 39 deletions(-) create mode 100644 ponyracer/projects/ponyracer-lib/tsconfig.lib.prod.json diff --git a/ponyracer/README.md b/ponyracer/README.md index d0287ef..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.29. +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 d7b0850..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.29", - "@angular-devkit/build-ng-packagr": "~0.803.29", - "@angular/cli": "~8.3.29", - "@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,