Skip to content

Commit 43ab3d1

Browse files
Merge pull request #264 from DavideViolante/v15
Upgrade to angular v15
2 parents 9ce7a1a + d6f33f9 commit 43ab3d1

11 files changed

Lines changed: 3492 additions & 5464 deletions

File tree

.browserslistrc

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

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: '16'
16+
node-version: '18'
1717
cache: 'npm'
1818
- run: npm ci
1919
- run: npm run lint

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
services:
1313
mongodb:
14-
image: mongo:5.0.5
14+
image: mongo:5.0.13
1515
ports:
1616
- 27017:27017
1717
if: "!contains(github.event.head_commit.message, '[skip tests]')"
1818
steps:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-node@v3
2121
with:
22-
node-version: '16'
22+
node-version: '18'
2323
cache: 'npm'
2424
- run: npm ci
2525
- run: npm run test -- --watch=false --progress=false --browsers=ChromeHeadless

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-alpine
1+
FROM node:18-alpine
22

33
WORKDIR /usr/src/app
44
COPY package*.json ./

angular.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,13 @@
128128
"schematicCollections": [
129129
"@angular-eslint/schematics"
130130
]
131+
},
132+
"schematics": {
133+
"@angular-eslint/schematics:application": {
134+
"setParserOptionsProject": true
135+
},
136+
"@angular-eslint/schematics:library": {
137+
"setParserOptionsProject": true
138+
}
131139
}
132140
}

client/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const routes: Routes = [
2727
];
2828

2929
@NgModule({
30-
imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })],
30+
imports: [RouterModule.forRoot(routes, {})],
3131
exports: [RouterModule]
3232
})
3333

client/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ body {
1515

1616
.input-group {
1717
margin-bottom: 15px;
18-
}
18+
}

client/test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: {
11-
context(path: string, deep?: boolean, filter?: RegExp): {
12-
<T>(id: string): T;
13-
keys(): string[];
14-
};
15-
};
16-
1710
// First, initialize the Angular testing environment.
1811
getTestBed().initTestEnvironment(
1912
BrowserDynamicTestingModule,
2013
platformBrowserDynamicTesting(),
2114
);
22-
23-
// Then we find all the tests.
24-
const context = require.context('./', true, /\.spec\.ts$/);
25-
// And load the modules.
26-
context.keys().map(context);

0 commit comments

Comments
 (0)