Skip to content

Commit

Permalink
feat: update to Angular 12 (#2769)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
- Bump Angular version to 12.
- Minimal requred `tslib` version is `2.1.0`.
- `NbTable` and `NbTreeGridComponent`:
  - `_viewRepeater`, `_coalescedStyleScheduler` constructor parameters are now required.
  - New parameters (`_viewportRuler`, `_stickyPositioningListener`) added to the constructor.
  • Loading branch information
yggg authored Jun 27, 2021
1 parent daadbe5 commit 5e74916
Show file tree
Hide file tree
Showing 37 changed files with 13,991 additions and 11,985 deletions.
56 changes: 46 additions & 10 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
Expand All @@ -27,7 +26,13 @@
"src/favicon.ico"
],
"styles": [],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand All @@ -52,7 +57,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -132,7 +138,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
Expand All @@ -148,7 +153,13 @@
"src/favicon.ico"
],
"styles": [],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand All @@ -173,7 +184,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -250,7 +262,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "docs/dist",
"index": "docs/index.html",
"main": "docs/main.ts",
Expand All @@ -268,17 +279,41 @@
"styles": [
"node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
"node_modules/bootstrap/dist/css/bootstrap.css",
"node_modules/docsearch.js/dist/cdn/docsearch.min.css",
{
"inject": true,
"bundleName": "algolia",
"input": "node_modules/docsearch.js/dist/cdn/docsearch.min.css"
},
"node_modules/highlight.js/styles/dracula.css",
"docs/app/@theme/styles/styles.scss"
],
"scripts": [
"node_modules/pace-js/pace.min.js",
"node_modules/docsearch.js/dist/cdn/docsearch.min.js"
]
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
"assets": [
{
"input": "docs/assets",
"glob": "**/*",
"ignore": ["examples/**/*"],
"output": "/assets"
},
"docs/404.html",
"docs/favicon.ico",
"docs/favicon.png",
"docs/google46533d2e7a851062.html",
"docs/robots.txt",
{ "glob": "versions.json", "input": "docs/", "output": "/" }
],
"budgets": [
{
"type": "anyComponentStyle",
Expand All @@ -300,7 +335,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down
2 changes: 1 addition & 1 deletion docs/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import 'core-js/es7/object';
/***************************************************************************************************
* Zone JS is required by Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.


/***************************************************************************************************
Expand Down
1 change: 0 additions & 1 deletion docs/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2017",
Expand Down
1 change: 0 additions & 1 deletion docs/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2017"
Expand Down
Loading

0 comments on commit 5e74916

Please sign in to comment.