Skip to content

Commit

Permalink
@angular/cli migration - workspace-version-9
Browse files Browse the repository at this point in the history
Angular Workspace migration. Update an Angular CLI workspace to version 9.
  • Loading branch information
liyokuna committed Apr 26, 2020
1 parent ad83073 commit 7d77985
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 52 deletions.
12 changes: 11 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/cookie-consent",
"index": "src/index.html",
"main": "src/main.ts",
Expand Down Expand Up @@ -54,6 +55,10 @@
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
}
Expand Down Expand Up @@ -147,7 +152,12 @@
"tsConfig": "projects/cookie-service/tsconfig.lib.json",
"project": "projects/cookie-service/ng-package.json"
}
},
, "configurations": {
"production": {
"tsConfig": "projects/cookie-service/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
Expand Down
71 changes: 34 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
"private": true,
"dependencies": {
"bootstrap": "^4.3.1",
"cookie-service-banner": "^2.0.1"
"cookie-service-banner": "^2.0.1",
"tslib": "^1.10.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.901.3",
"@angular-devkit/build-ng-packagr": "^0.901.3",
"@angular-devkit/build-angular": "~0.901.3",
"@angular-devkit/build-ng-packagr": "~0.901.3",
"@angular/animations": "^9.1.3",
"@angular/cli": "^9.1.3",
"@angular/common": "^9.1.3",
Expand All @@ -50,9 +51,9 @@
"@angular/router": "^9.1.3",
"@types/jasmine": "^3.4.4",
"@types/jasminewd2": "^2.0.8",
"@types/node": "^12.7.12",
"@types/node": "^12.11.1",
"bootstrap": "^4.3.1",
"codelyzer": "~5.1.1",
"codelyzer": "^5.1.2",
"core-js": "^3.3.2",
"cpx": "~1.5.0",
"jasmine-core": "^3.5.0",
Expand All @@ -62,15 +63,13 @@
"karma-coverage-istanbul-reporter": "^2.1.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"ng-packagr": "^9.1.1",
"ng-packagr": "^9.0.0",
"protractor": "~5.4.0",
"rxjs": "^6.5.3",
"ts-node": "^8.4.1",
"tsickle": "^0.38.1",
"tslib": "^1.10.0",
"tslint": "^5.20.0",
"typescript": "~3.8.3",
"zone.js": "~0.10.3"
"zone.js": "~0.10.2"
},
"keywords": [
"angular",
Expand Down
1 change: 0 additions & 1 deletion projects/cookie-service/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
Expand Down
6 changes: 6 additions & 0 deletions projects/cookie-service/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": false
}
}
9 changes: 6 additions & 3 deletions src/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"outDir": "../out-tsc/app",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts"
"files": [
"main.ts",
"polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit 7d77985

Please sign in to comment.