Skip to content

Commit

Permalink
feat: upgrade to angular 12
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed May 27, 2021
1 parent 5796885 commit 2558555
Show file tree
Hide file tree
Showing 12 changed files with 16,601 additions and 18,738 deletions.
62 changes: 34 additions & 28 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ngx-editor/tsconfig.lib.json",
"project": "projects/ngx-editor/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-editor/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-editor/tsconfig.lib.json"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand All @@ -43,8 +46,8 @@
"demo": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
"@schematics/angular:application": {
"strict": true
}
},
"root": "projects/demo",
Expand All @@ -59,7 +62,6 @@
"main": "projects/demo/src/main.ts",
"polyfills": "projects/demo/src/polyfills.ts",
"tsConfig": "projects/demo/tsconfig.app.json",
"aot": true,
"assets": [
"projects/demo/src/favicon.ico",
"projects/demo/src/assets"
Expand All @@ -71,44 +73,48 @@
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/demo/src/environments/environment.ts",
"with": "projects/demo/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "projects/demo/src/environments/environment.ts",
"with": "projects/demo/src/environments/environment.prod.ts"
}
]
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
},
"development": {
"browserTarget": "demo:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand Down
Loading

0 comments on commit 2558555

Please sign in to comment.