Skip to content

Commit 1b37f20

Browse files
committed
feat: update angular
1 parent ece0d30 commit 1b37f20

File tree

11 files changed

+1079
-1576
lines changed

11 files changed

+1079
-1576
lines changed

angular.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,13 @@
230230
},
231231
"cli": {
232232
"analytics": false
233+
},
234+
"schematics": {
235+
"@angular-eslint/schematics:application": {
236+
"setParserOptionsProject": true
237+
},
238+
"@angular-eslint/schematics:library": {
239+
"setParserOptionsProject": true
240+
}
233241
}
234242
}

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
},
1818
"private": false,
1919
"dependencies": {
20-
"@angular/animations": "^14.2.12",
20+
"@angular/animations": "^15.0.4",
2121
"@angular/cdk": "^14.2.7",
22-
"@angular/common": "^14.2.12",
23-
"@angular/compiler": "^14.2.12",
24-
"@angular/core": "^14.2.12",
25-
"@angular/forms": "^14.2.12",
22+
"@angular/common": "^15.0.4",
23+
"@angular/compiler": "^15.0.4",
24+
"@angular/core": "^15.0.4",
25+
"@angular/forms": "^15.0.4",
2626
"@angular/material": "^14.2.7",
27-
"@angular/platform-browser": "^14.2.12",
28-
"@angular/platform-browser-dynamic": "^14.2.12",
29-
"@angular/router": "^14.2.12",
27+
"@angular/platform-browser": "^15.0.4",
28+
"@angular/platform-browser-dynamic": "^15.0.4",
29+
"@angular/router": "^15.0.4",
3030
"@ngrx/store": "14.3.2",
3131
"@ngx-translate/core": "14.0.0",
3232
"perfect-scrollbar": "^1.5.0",
@@ -36,35 +36,35 @@
3636
"zone.js": "~0.11.4"
3737
},
3838
"devDependencies": {
39-
"@angular-devkit/build-angular": "^14.2.10",
39+
"@angular-devkit/build-angular": "^15.0.5",
4040
"@angular-devkit/build-ng-packagr": "^0.1000.1",
41-
"@angular-eslint/builder": "14.4.0",
42-
"@angular-eslint/eslint-plugin": "14.4.0",
43-
"@angular-eslint/eslint-plugin-template": "14.4.0",
44-
"@angular-eslint/schematics": "14.4.0",
45-
"@angular-eslint/template-parser": "14.4.0",
46-
"@angular/cli": "^14.2.10",
47-
"@angular/compiler-cli": "^14.2.12",
48-
"@angular/language-service": "^14.2.12",
41+
"@angular-eslint/builder": "15.1.0",
42+
"@angular-eslint/eslint-plugin": "15.1.0",
43+
"@angular-eslint/eslint-plugin-template": "15.1.0",
44+
"@angular-eslint/schematics": "15.1.0",
45+
"@angular-eslint/template-parser": "15.1.0",
46+
"@angular/cli": "^15.0.5",
47+
"@angular/compiler-cli": "^15.0.4",
48+
"@angular/language-service": "^15.0.4",
4949
"@types/jasmine": "~3.5.0",
5050
"@types/jasminewd2": "~2.0.3",
5151
"@types/node": "18.11.18",
52-
"@typescript-eslint/eslint-plugin": "^5.36.2",
53-
"@typescript-eslint/parser": "^5.36.2",
52+
"@typescript-eslint/eslint-plugin": "^5.43.0",
53+
"@typescript-eslint/parser": "^5.43.0",
5454
"codelyzer": "^5.1.2",
55-
"eslint": "^8.23.0",
55+
"eslint": "^8.28.0",
5656
"jasmine-core": "~3.5.0",
5757
"jasmine-spec-reporter": "~5.0.0",
5858
"karma": "~6.3.4",
5959
"karma-chrome-launcher": "~3.1.0",
6060
"karma-coverage-istanbul-reporter": "~3.0.2",
6161
"karma-jasmine": "~3.3.0",
6262
"karma-jasmine-html-reporter": "^1.5.0",
63-
"ng-packagr": "^14.2.2",
63+
"ng-packagr": "^15.0.3",
6464
"protractor": "~7.0.0",
6565
"ts-node": "~8.3.0",
6666
"tslint": "~6.1.0",
67-
"typescript": "~4.6.4"
67+
"typescript": "~4.8.4"
6868
},
6969
"repository": {
7070
"type": "git",

projects/craftsjs/alert/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ import {
99
platformBrowserDynamicTesting
1010
} from '@angular/platform-browser-dynamic/testing';
1111

12-
declare const require: any;
13-
1412
// First, initialize the Angular testing environment.
1513
getTestBed().initTestEnvironment(
1614
BrowserDynamicTestingModule,
1715
platformBrowserDynamicTesting(), {
1816
teardown: { destroyAfterEach: false }
1917
}
2018
);
21-
// Then we find all the tests.
22-
const context = require.context('./', true, /\.spec\.ts$/);
23-
// And load the modules.
24-
context.keys().map(context);

projects/craftsjs/card/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ import {
99
platformBrowserDynamicTesting
1010
} from '@angular/platform-browser-dynamic/testing';
1111

12-
declare const require: any;
13-
1412
// First, initialize the Angular testing environment.
1513
getTestBed().initTestEnvironment(
1614
BrowserDynamicTestingModule,
1715
platformBrowserDynamicTesting(), {
1816
teardown: { destroyAfterEach: false }
1917
}
2018
);
21-
// Then we find all the tests.
22-
const context = require.context('./', true, /\.spec\.ts$/);
23-
// And load the modules.
24-
context.keys().map(context);

projects/craftsjs/core/src/test.ts

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

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

projects/craftsjs/menu-admin/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ import {
99
platformBrowserDynamicTesting
1010
} from '@angular/platform-browser-dynamic/testing';
1111

12-
declare const require: any;
13-
1412
// First, initialize the Angular testing environment.
1513
getTestBed().initTestEnvironment(
1614
BrowserDynamicTestingModule,
1715
platformBrowserDynamicTesting(), {
1816
teardown: { destroyAfterEach: false }
1917
}
2018
);
21-
// Then we find all the tests.
22-
const context = require.context('./', true, /\.spec\.ts$/);
23-
// And load the modules.
24-
context.keys().map(context);

projects/craftsjs/modal/src/test.ts

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

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

projects/craftsjs/notifier/src/test.ts

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

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

projects/craftsjs/perfect-scrollbar/src/test.ts

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

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

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"moduleResolution": "node",
1212
"importHelpers": true,
1313
"incremental": true,
14-
"target": "es2020",
14+
"target": "ES2022",
1515
"lib": [
1616
"es2018",
1717
"dom"
@@ -49,7 +49,8 @@
4949
"dist/craftsjs/notifier/craftsjs-notifier",
5050
"dist/craftsjs/notifier"
5151
]
52-
}
52+
},
53+
"useDefineForClassFields": false
5354
},
5455
"angularCompilerOptions": {
5556
"fullTemplateTypeCheck": true,

0 commit comments

Comments
 (0)