Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit 75561a6

Browse files
authored
Merge pull request #89 from kingcody/master
Update to Angular version 9.1.12
2 parents 547d56a + 3f6d86b commit 75561a6

File tree

8 files changed

+3419
-1623
lines changed

8 files changed

+3419
-1623
lines changed

angular.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
"prefix": "app",
1111
"schematics": {
1212
"@schematics/angular:component": {
13-
"styleext": "scss"
13+
"style": "scss"
1414
}
1515
},
1616
"architect": {
1717
"build": {
1818
"builder": "@angular-devkit/build-angular:browser",
1919
"options": {
20+
"aot": true,
2021
"outputPath": "dist/ngx-bootstrap-form-validation",
2122
"index": "src/index.html",
2223
"main": "src/main.ts",
@@ -33,6 +34,12 @@
3334
},
3435
"configurations": {
3536
"production": {
37+
"budgets": [
38+
{
39+
"type": "anyComponentStyle",
40+
"maximumWarning": "6kb"
41+
}
42+
],
3643
"fileReplacements": [{
3744
"replace": "src/environments/environment.ts",
3845
"with": "src/environments/environment.prod.ts"
@@ -139,7 +146,8 @@
139146
"configurations": {
140147
"production": {
141148
"project": "projects/ng-bootstrap-form-validation/ng-package.prod.json"
142-
}
149+
, "tsConfig": "projects/ng-bootstrap-form-validation/tsconfig.lib.prod.json"
150+
}
143151
}
144152
},
145153
"test": {

package.json

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "ng-bootstrap-form-validation",
3-
"version": "5.0.0",
3+
"version": "9.0.0",
44
"engine": {
55
"node": ">=10.0.0"
66
},
77
"scripts": {
88
"ng": "ng",
99
"start": "ng serve",
10-
"build": "ng build",
10+
"build": "ng build --prod",
1111
"test": "ng test",
1212
"lint": "ng lint",
1313
"e2e": "ng e2e",
@@ -35,28 +35,29 @@
3535
},
3636
"private": true,
3737
"dependencies": {
38-
"@angular/animations": "^8.2.7",
39-
"@angular/common": "^8.2.7",
40-
"@angular/compiler": "^8.2.7",
41-
"@angular/core": "^8.2.7",
42-
"@angular/forms": "^8.2.7",
43-
"@angular/platform-browser": "^8.2.7",
44-
"@angular/platform-browser-dynamic": "^8.2.7",
45-
"@angular/router": "^8.2.7",
38+
"@angular/animations": "^9.1.12",
39+
"@angular/common": "^9.1.12",
40+
"@angular/compiler": "^9.1.12",
41+
"@angular/core": "^9.1.12",
42+
"@angular/forms": "^9.1.12",
43+
"@angular/platform-browser": "^9.1.12",
44+
"@angular/platform-browser-dynamic": "^9.1.12",
45+
"@angular/router": "^9.1.12",
4646
"core-js": "^2.5.4",
47-
"rxjs": "^6.5.3",
48-
"zone.js": "~0.9.1"
47+
"rxjs": "^6.6.3",
48+
"tslib": "^1.10.0",
49+
"zone.js": "~0.10.2"
4950
},
5051
"devDependencies": {
51-
"@angular-devkit/build-angular": "~0.803.5",
52-
"@angular-devkit/build-ng-packagr": "~0.803.5",
53-
"@angular/cli": "~8.3.5",
54-
"@angular/compiler-cli": "^8.2.7",
55-
"@angular/language-service": "^8.2.7",
52+
"@angular-devkit/build-angular": "~0.901.12",
53+
"@angular-devkit/build-ng-packagr": "~0.901.12",
54+
"@angular/cli": "~9.1.12",
55+
"@angular/compiler-cli": "^9.1.12",
56+
"@angular/language-service": "^9.1.12",
5657
"@types/jasmine": "~2.8.6",
5758
"@types/jasminewd2": "~2.0.3",
58-
"@types/node": "~8.9.4",
59-
"codelyzer": "^5.0.1",
59+
"@types/node": "^12.11.1",
60+
"codelyzer": "^5.1.2",
6061
"husky": "^0.14.3",
6162
"jasmine-core": "~2.99.1",
6263
"jasmine-spec-reporter": "~4.2.1",
@@ -66,14 +67,12 @@
6667
"karma-jasmine": "~1.1.1",
6768
"karma-jasmine-html-reporter": "^0.2.2",
6869
"lint-staged": "^7.2.2",
69-
"ng-packagr": "^5.4.0",
70+
"ng-packagr": "^9.0.0",
7071
"ng2-mock-component": "^0.1.1",
7172
"prettier": "^1.14.2",
7273
"protractor": "~5.4.0",
7374
"ts-node": "~5.0.1",
74-
"tsickle": "^0.37.0",
75-
"tslib": "^1.10.0",
7675
"tslint": "~5.20.0",
77-
"typescript": "~3.5.3"
76+
"typescript": "~3.8.3"
7877
}
7978
}

projects/ng-bootstrap-form-validation/src/lib/Components/form-group/form-group.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class FormGroupComponent implements OnInit, AfterContentInit {
4949
);
5050
}
5151

52-
@ContentChild(MessagesComponent, { static: false })
52+
@ContentChild(MessagesComponent)
5353
public messagesBlock: MessagesComponent;
5454

5555
private errorMessages: ErrorMessage[];

projects/ng-bootstrap-form-validation/src/lib/ng-bootstrap-form-validation.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class NgBootstrapFormValidationModule {
2929
userOptions: NgBootstrapFormValidationModuleOptions = {
3030
bootstrapVersion: BootstrapVersion.Four
3131
}
32-
): ModuleWithProviders {
32+
): ModuleWithProviders<NgBootstrapFormValidationModule> {
3333
return {
3434
ngModule: NgBootstrapFormValidationModule,
3535
providers: [

projects/ng-bootstrap-form-validation/tsconfig.lib.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
]
1919
},
2020
"angularCompilerOptions": {
21-
"annotateForClosureCompiler": true,
2221
"skipTemplateCodegen": true,
2322
"strictMetadataEmit": true,
2423
"fullTemplateTypeCheck": true,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.lib.json",
3+
"angularCompilerOptions": {
4+
"enableIvy": false
5+
}
6+
}

src/tsconfig.app.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"outDir": "../out-tsc/app",
55
"types": []
66
},
7-
"exclude": [
8-
"test.ts",
9-
"**/*.spec.ts"
7+
"files": [
8+
"main.ts",
9+
"polyfills.ts"
10+
],
11+
"include": [
12+
"src/**/*.d.ts"
1013
]
1114
}

0 commit comments

Comments
 (0)