Skip to content
Snippets Groups Projects
Commit ae36781f authored by François Grand's avatar François Grand
Browse files

update Angular code/CLI to version 13

refs #500
parent 9d7cfbc6
No related branches found
No related tags found
1 merge request!155Resolve "Update to the last version of Angular"
......@@ -32,6 +32,7 @@ docs/pdf_build
!.vscode/extensions.json
# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
......
......@@ -108,12 +108,6 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ngHyd:build",
"aot": true,
"sourceMap": {
"scripts": true,
"styles": true,
"vendor": true
}
},
"configurations": {
"production": {
......@@ -147,18 +141,6 @@
"src/**/*.png"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
......@@ -174,17 +156,6 @@
"devServerTarget": "ngHyd:serve",
"port": 4201
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
......
This diff is collapsed.
......@@ -131,7 +131,7 @@ const appRoutes: Routes = [
@NgModule({
imports: [
FormsModule, // <-- import the FormsModule before binding with [(ngModel)]
FormsModule,
ReactiveFormsModule,
BrowserAnimationsModule,
BrowserModule,
......@@ -172,18 +172,15 @@ const appRoutes: Routes = [
MatTooltipModule,
MatExpansionModule,
MatomoModule,
RouterModule.forRoot(
appRoutes,
{
useHash: true,
enableTracing: false, // debugging purposes only
relativeLinkResolution: 'legacy'
}
),
RouterModule.forRoot(appRoutes, {
useHash: true,
enableTracing: false,
relativeLinkResolution: 'legacy'
}),
TableModule,
KonamiModule
],
declarations: [ // composants, pipes et directives
declarations: [
AppComponent,
ApplicationSetupComponent,
BaseParamInputComponent,
......@@ -248,21 +245,7 @@ const appRoutes: Routes = [
VarResultsComponent,
VerificateurResultsComponent
],
entryComponents: [
DialogConfirmCloseCalcComponent,
DialogConfirmEmptySessionComponent,
DialogEditPabComponent,
DialogEditParamComputedComponent,
DialogEditParamValuesComponent,
DialogGeneratePABComponent,
DialogGeneratePARSimulationComponent,
DialogLoadPredefinedEspeceComponent,
DialogSaveSessionComponent,
DialogNewPbCloisonComponent,
DialogLoadSessionComponent,
DialogLogEntriesDetailsComponent
],
providers: [ // services
providers: [
ApplicationSetupService,
CustomBreakPointsProvider,
FormulaireService,
......@@ -270,12 +253,12 @@ const appRoutes: Routes = [
I18nService,
NotificationsService,
{
provide: ErrorStateMatcher,
useClass: ImmediateErrorStateMatcher
provide: ErrorStateMatcher,
useClass: ImmediateErrorStateMatcher
}
],
schemas: [ NO_ERRORS_SCHEMA ],
bootstrap: [ AppComponent ]
schemas: [NO_ERRORS_SCHEMA],
bootstrap: [AppComponent]
})
export class AppModule { }
......@@ -34,9 +34,6 @@
// import 'core-js/es6/weak-map';
// import 'core-js/es6/set';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';
......@@ -46,14 +43,6 @@
/**
* Required to support Web Animations `@angular/platform-browser/animations`.
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/***************************************************************************************************
* Zone JS is required by Angular itself.
*/
......
......@@ -22,7 +22,9 @@ __karma__.loaded = function () {};
// 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$/);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment