Skip to content

Commit

Permalink
feat: update to Angular 15 (#3163)
Browse files Browse the repository at this point in the history
* feat: update eslint to Angular 15

* feat: update package-smoke to Angular 15

* feat: update package-smoke to Angular 15

* feat: update to Angular 15

* feat: update to Angular 15

* feat: update to Angular 15

* feat: update to Angular 15
  • Loading branch information
denStrigo committed Mar 29, 2023
1 parent a693caf commit f3098ea
Show file tree
Hide file tree
Showing 43 changed files with 11,567 additions and 54,099 deletions.
17 changes: 0 additions & 17 deletions .browserslistrc

This file was deleted.

10 changes: 9 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@
"node_modules/pace-js/pace.min.js",
"node_modules/docsearch.js/dist/cdn/docsearch.min.js"
],
"allowedCommonJsDependencies": ["highlight.js"]
"allowedCommonJsDependencies": [
"highlight.js"
]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -613,6 +615,12 @@
},
"@schematics/angular:application": {
"strict": true
},
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
},
"cli": {
Expand Down
17 changes: 0 additions & 17 deletions docs/.browserslistrc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import * as docs from '../output.json';
NgdThemeModule.forRoot(),
NbSidebarModule.forRoot(),
NbDialogModule.forRoot(),
RouterModule.forRoot(routes, { useHash: false, relativeLinkResolution: 'legacy' }),
RouterModule.forRoot(routes, { useHash: false }),
],
declarations: [NgdAppComponent],
providers: [Title, { provide: STRUCTURE, useValue: structure }, { provide: DOCS, useValue: docs }],
Expand Down
16 changes: 0 additions & 16 deletions docs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,7 @@ import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: {
context(
path: string,
deep?: boolean,
filter?: RegExp,
): {
keys(): string[];
<T>(id: string): T;
};
};

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: true },
});

// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
Loading

0 comments on commit f3098ea

Please sign in to comment.