Skip to content

Commit

Permalink
fix(angular): update library to angular 13
Browse files Browse the repository at this point in the history
  • Loading branch information
atlawrie committed Sep 7, 2022
1 parent ff9dc84 commit b193763
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ speed-measure-plugin*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
21 changes: 0 additions & 21 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@
"tsConfig": "projects/imgix-angular/tsconfig.spec.json",
"karmaConfig": "projects/imgix-angular/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/imgix-angular/tsconfig.lib.json",
"projects/imgix-angular/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
Expand Down Expand Up @@ -132,17 +122,6 @@
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/imgix-angular-example/tsconfig.app.json",
"projects/imgix-angular-example/tsconfig.spec.json",
"projects/imgix-angular-example/e2e/tsconfig.json"
],
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
"dependencies": {},
"devDependencies": {
"@angular-builders/custom-webpack": "13.1.0",
"@angular-devkit/build-angular": "12.2.18",
"@angular/animations": "12.2.16",
"@angular/cli": "12.2.18",
"@angular/common": "12.2.16",
"@angular/compiler": "12.2.16",
"@angular/compiler-cli": "12.2.16",
"@angular/core": "12.2.16",
"@angular/forms": "12.2.16",
"@angular/language-service": "12.2.16",
"@angular/platform-browser": "12.2.16",
"@angular/platform-browser-dynamic": "12.2.16",
"@angular/router": "12.2.16",
"@angular-devkit/build-angular": "13.3.9",
"@angular/animations": "13.3.11",
"@angular/cli": "13.3.9",
"@angular/common": "13.3.11",
"@angular/compiler": "13.3.11",
"@angular/compiler-cli": "13.3.11",
"@angular/core": "13.3.11",
"@angular/forms": "13.3.11",
"@angular/language-service": "13.3.11",
"@angular/platform-browser": "13.3.11",
"@angular/platform-browser-dynamic": "13.3.11",
"@angular/router": "13.3.11",
"@google/semantic-release-replace-plugin": "1.1.0",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@testing-library/angular": "10.7.1",
"@testing-library/angular": "11.0.4",
"@types/jasmine": "3.10.5",
"@types/jasminewd2": "2.0.10",
"@types/node": "16.11.26",
Expand All @@ -50,15 +50,15 @@
"karma-firefox-launcher": "1.3.0",
"karma-jasmine": "4.0.2",
"karma-jasmine-html-reporter": "1.7.0",
"ng-packagr": "11.2.4",
"ng-packagr": "13.3.1",
"prettier": "2.5.1",
"protractor": "7.0.0",
"rxjs": "7.4.0",
"semantic-release": "19.0.2",
"ts-node": "9.1.1",
"tslib": "2.3.1",
"tslint": "6.1.3",
"typescript": "4.3.5",
"typescript": "4.6.4",
"zone.js": "~0.11.4"
},
"release": {
Expand Down
4 changes: 3 additions & 1 deletion projects/imgix-angular-example/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
},
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down
6 changes: 1 addition & 5 deletions projects/imgix-angular/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "./dist",
"lib": {
"entryFile": "src/public-api.ts",
"umdModuleIds": {
"imgix-core-js": "imgix-core-js",
"urijs": "urijs"
}
"entryFile": "src/public-api.ts"
},
"whitelistedNonPeerDependencies": [
"tslib",
Expand Down
6 changes: 3 additions & 3 deletions projects/imgix-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"urijs": "1.19.8"
},
"peerDependencies": {
"@angular/common": "8.x || 9.x || 10.x || 11.x || 12.x",
"@angular/core": "8.x || 9.x || 10.x || 11.x || 12.x",
"@angular/platform-browser": "8.x || 9.x || 10.x || 11.x || 12.x"
"@angular/common": "8.x || 9.x || 10.x || 11.x || 12.x || 13.x",
"@angular/core": "8.x || 9.x || 10.x || 11.x || 12.x || 13.x",
"@angular/platform-browser": "8.x || 9.x || 10.x || 11.x || 12.x || 13.x"
}
}
4 changes: 3 additions & 1 deletion projects/imgix-angular/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
},
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down
4 changes: 2 additions & 2 deletions projects/imgix-angular/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"lib": ["dom", "es2018"]
},
"angularCompilerOptions": {
"compilationMode": "partial",
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true,
"enableIvy": false
"enableResourceInlining": true
},
"exclude": ["src/test.ts", "**/*.spec.ts"]
}
2 changes: 1 addition & 1 deletion projects/imgix-angular/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"declarationMap": false
},
"angularCompilerOptions": {
"enableIvy": false
"compilationMode": "partial"
}
}

0 comments on commit b193763

Please sign in to comment.