Skip to content

Commit 9c0fe78

Browse files
committed
fix(lib): upgraded the library to angular v9
1 parent d2baa6b commit 9c0fe78

22 files changed

+19622
-11143
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
src="https://cdn.jsdelivr.net/gh/angular-material-extensions/select-country@master/assets/angular-material-extensions-logo.svg">
55
</p>
66

7-
# @angular-material-extensions/select-country - Angular Material component that allow users to select a country or nationality with an autocomplete feature - Angular V8 supported incl. schematics
7+
# @angular-material-extensions/select-country - Angular Material component that allow users to select a country or nationality with an autocomplete feature - Angular V9 supported incl. schematics
88

99
[![npm version](https://badge.fury.io/js/%40angular-material-extensions%2Fselect-country.svg)](https://badge.fury.io/js/%40angular-material-extensions%2Fselect-country)
1010
[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/select-country)
@@ -64,7 +64,7 @@ View all the directives and components in action at [https://angular-material-ex
6464
<a name="dependencies"/>
6565

6666
## Dependencies
67-
* [Angular](https://angular.io) developed and tested with `8.x`
67+
* [Angular](https://angular.io) developed and tested with `9.x`
6868

6969
---
7070

angular.json

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"main": "src/main.ts",
2323
"polyfills": "src/polyfills.ts",
2424
"tsConfig": "tsconfig.app.json",
25-
"aot": false,
25+
"aot": true,
2626
"assets": [
2727
"src/favicon.ico",
2828
"src/assets",
@@ -55,7 +55,6 @@
5555
"sourceMap": false,
5656
"extractCss": true,
5757
"namedChunks": false,
58-
"aot": true,
5958
"extractLicenses": true,
6059
"vendorChunk": false,
6160
"buildOptimizer": true,
@@ -138,7 +137,7 @@
138137
"builder": "@angular-devkit/build-angular:server",
139138
"options": {
140139
"outputPath": "dist/server",
141-
"main": "src/main.server.ts",
140+
"main": "server.ts",
142141
"tsConfig": "tsconfig.server.json"
143142
},
144143
"configurations": {
@@ -150,16 +149,39 @@
150149
}
151150
],
152151
"sourceMap": false,
153-
"optimization": {
154-
"scripts": false,
155-
"styles": true
156-
}
152+
"optimization": true
157153
}
158154
}
159155
},
160156
"deploy": {
161157
"builder": "angular-cli-ghpages:deploy",
162158
"options": {}
159+
},
160+
"serve-ssr": {
161+
"builder": "@nguniversal/builders:ssr-dev-server",
162+
"options": {
163+
"browserTarget": "select-country:build",
164+
"serverTarget": "select-country:server"
165+
},
166+
"configurations": {
167+
"production": {
168+
"browserTarget": "select-country:build:production",
169+
"serverTarget": "select-country:server:production"
170+
}
171+
}
172+
},
173+
"prerender": {
174+
"builder": "@nguniversal/builders:prerender",
175+
"options": {
176+
"browserTarget": "select-country:build:production",
177+
"serverTarget": "select-country:server:production",
178+
"routes": [
179+
"/"
180+
]
181+
},
182+
"configurations": {
183+
"production": {}
184+
}
163185
}
164186
}
165187
},
@@ -174,6 +196,11 @@
174196
"options": {
175197
"tsConfig": "projects/angular-material-extensions/select-country/tsconfig.lib.json",
176198
"project": "projects/angular-material-extensions/select-country/ng-package.json"
199+
},
200+
"configurations": {
201+
"production": {
202+
"tsConfig": "projects/angular-material-extensions/select-country/tsconfig.lib.prod.json"
203+
}
177204
}
178205
},
179206
"test": {
@@ -199,5 +226,8 @@
199226
}
200227
}
201228
},
202-
"defaultProject": "select-country"
203-
}
229+
"defaultProject": "select-country",
230+
"cli": {
231+
"analytics": "c343e13c-52a4-476c-b27c-263c72b09d52"
232+
}
233+
}

0 commit comments

Comments
 (0)