Skip to content

Commit 0b3d59f

Browse files
committed
Angular 15 and all JS deps #9282
Except: - @types/node, we run on node 16
1 parent ae5f2d7 commit 0b3d59f

File tree

8 files changed

+1719
-2135
lines changed

8 files changed

+1719
-2135
lines changed

.browserslistrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

angular.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,13 @@
122122
}
123123
}
124124
}
125+
},
126+
"schematics": {
127+
"@angular-eslint/schematics:application": {
128+
"setParserOptionsProject": true
129+
},
130+
"@angular-eslint/schematics:library": {
131+
"setParserOptionsProject": true
132+
}
125133
}
126134
}

package.json

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,45 +40,46 @@
4040
"url": "https://github.com/Ecodev/angular-natural-gallery/issues"
4141
},
4242
"devDependencies": {
43-
"@angular-devkit/build-angular": "^14.1.1",
44-
"@angular-eslint/builder": "^14.0.2",
45-
"@angular-eslint/eslint-plugin": "^14.0.2",
46-
"@angular-eslint/eslint-plugin-template": "^14.0.2",
47-
"@angular-eslint/schematics": "^14.0.2",
48-
"@angular-eslint/template-parser": "^14.0.2",
49-
"@angular/animations": "^14.1.1",
50-
"@angular/cli": "^14.1.1",
51-
"@angular/common": "^14.1.1",
52-
"@angular/compiler": "^14.1.1",
53-
"@angular/compiler-cli": "^14.1.1",
54-
"@angular/core": "^14.1.1",
55-
"@angular/language-service": "^14.1.1",
56-
"@angular/platform-browser": "^14.1.1",
57-
"@angular/platform-browser-dynamic": "^14.1.1",
58-
"@angular/router": "^14.1.1",
43+
"@angular-devkit/build-angular": "^15.1.3",
44+
"@angular-eslint/builder": "^15.2.0",
45+
"@angular-eslint/eslint-plugin": "^15.2.0",
46+
"@angular-eslint/eslint-plugin-template": "^15.2.0",
47+
"@angular-eslint/schematics": "^15.2.0",
48+
"@angular-eslint/template-parser": "^15.2.0",
49+
"@angular/animations": "^15.1.2",
50+
"@angular/cli": "^15.1.3",
51+
"@angular/common": "^15.1.2",
52+
"@angular/compiler": "^15.1.2",
53+
"@angular/compiler-cli": "^15.1.2",
54+
"@angular/core": "^15.1.2",
55+
"@angular/language-service": "^15.1.2",
56+
"@angular/platform-browser": "^15.1.2",
57+
"@angular/platform-browser-dynamic": "^15.1.2",
58+
"@angular/router": "^15.1.2",
5959
"@ecodev/natural-gallery-js": "^9.1.4",
60-
"@playwright/test": "^1.24.2",
61-
"@types/jasmine": "~4.0.3",
60+
"@playwright/test": "^1.30.0",
61+
"@types/jasmine": "~4.3.1",
6262
"@types/jasminewd2": "^2.0.9",
6363
"@types/node": "^16.0",
64-
"@typescript-eslint/eslint-plugin": "^5.29.0",
65-
"@typescript-eslint/parser": "^5.29.0",
66-
"eslint": "^8.18.0",
67-
"jasmine-core": "~4.3.0",
64+
"@typescript-eslint/eslint-plugin": "^5.43.0",
65+
"@typescript-eslint/parser": "^5.43.0",
66+
"eslint": "^8.28.0",
67+
"jasmine-core": "~4.5.0",
6868
"jasmine-spec-reporter": "~7.0.0",
6969
"karma": "~6.4.0",
7070
"karma-chrome-launcher": "~3.1.1",
7171
"karma-coverage-istanbul-reporter": "~3.0.2",
7272
"karma-jasmine": "~5.1.0",
7373
"karma-jasmine-html-reporter": "^2.0.0",
74-
"ng-packagr": "^14.1.0",
75-
"photoswipe": "^5.3.2",
76-
"prettier": "2.7.1",
77-
"rxjs": "^7.5.6",
74+
"ng-packagr": "^15.1.1",
75+
"photoswipe": "^5.3.4",
76+
"prettier": "2.8.3",
77+
"rxjs": "^7.8.0",
7878
"scss-bundle": "^3.1.2",
7979
"ts-node": "^10.9.1",
80-
"tslib": "^2.4.0",
81-
"typescript": "~4.7.4",
82-
"zone.js": "~0.11.7"
83-
}
80+
"tslib": "^2.5.0",
81+
"typescript": "~4.9.4",
82+
"zone.js": "~0.12.0"
83+
},
84+
"dependencies": {}
8485
}

projects/angular-natural-gallery/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"tslib": "^2.0.0"
1515
},
1616
"peerDependencies": {
17-
"@angular/common": "^14.1.1",
18-
"@angular/core": "^14.1.1"
17+
"@angular/common": "^15.1.0",
18+
"@angular/core": "^15.1.0"
1919
}
2020
}

projects/angular-natural-gallery/src/test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@ import 'zone.js/testing';
55
import {getTestBed} from '@angular/core/testing';
66
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
77

8-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9-
declare const require: any;
10-
118
// First, initialize the Angular testing environment.
129
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
1310
teardown: {destroyAfterEach: false},
1411
});
15-
// Then we find all the tests.
16-
const context = require.context('./', true, /\.spec\.ts$/);
17-
// And load the modules.
18-
context.keys().map(context);

projects/angular-natural-gallery/tsconfig.lib.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
"outDir": "../../out-tsc/lib",
55
"declarationMap": true,
6-
"target": "es2020",
76
"module": "es2015",
87
"moduleResolution": "node",
98
"declaration": true,

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"experimentalDecorators": true,
1111
"strictNullChecks": true,
1212
"importHelpers": true,
13-
"target": "es2020",
13+
"target": "ES2022",
1414
"typeRoots": ["node_modules/@types"],
1515
"lib": ["es2017", "dom"],
1616
"allowSyntheticDefaultImports": true,
@@ -20,7 +20,8 @@
2020
"@ecodev/angular-natural-gallery/*": ["dist/angular-natural-gallery/*"],
2121
"photoswipe/lightbox": ["./node_modules/photoswipe/dist/types/photoswipe.d.ts"]
2222
},
23-
"noImplicitOverride": true
23+
"noImplicitOverride": true,
24+
"useDefineForClassFields": false
2425
},
2526
"angularCompilerOptions": {
2627
"fullTemplateTypeCheck": true,

0 commit comments

Comments
 (0)