Update core and cli to v13

This commit is contained in:
yunusyerli1 2023-05-24 17:54:23 +03:00 committed by Clemente Raposo
parent 8ed3931d25
commit 6e4fa5da72
15 changed files with 2928 additions and 3371 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/.angular/cache
## SuiteCRM 8 ##
###> symfony/framework-bundle ###

View file

@ -245,18 +245,6 @@
"tsConfig": "core/app/common/tsconfig.spec.json",
"karmaConfig": "core/app/common/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"core/app/common/tsconfig.lib.json",
"core/app/common/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
@ -292,18 +280,6 @@
],
"extraWebpackConfig": "core/app/core/webpack.config.spec.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"core/app/core/tsconfig.lib.json",
"core/app/core/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
@ -412,19 +388,6 @@
"extraWebpackConfig": "extensions/defaultExt/app/webpack.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"extensions/defaultExt/app/tsconfig.app.json",
"extensions/defaultExt/app/tsconfig.spec.json",
"extensions/defaultExt/app/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {

View file

@ -15,7 +15,9 @@ declare const require: {
// 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$/);

View file

@ -5,6 +5,6 @@
"declarationMap": false
},
"angularCompilerOptions": {
"enableIvy": false
"compilationMode": "partial"
}
}

View file

@ -44,8 +44,7 @@ import {ButtonModule} from "../button/button.module";
ModalModule,
LabelModule,
ButtonModule
],
entryComponents: [ColumnChooserComponent]
]
})
export class ColumnChooserModule {
}

View file

@ -50,7 +50,6 @@ import {ImageModule} from '../image/image.module';
NgbAlertModule,
ImageModule
],
entryComponents: [InstallErrorModalComponent],
bootstrap: [InstallErrorModalComponent]
})
export class InstallErrorModalModule {

View file

@ -35,6 +35,7 @@ TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
teardown: { destroyAfterEach: false }
}).compileComponents().then();
const router = TestBed.inject(Router); // Just if we need to test Route Service functionality

View file

@ -15,7 +15,9 @@ declare const require: {
// 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$/);

View file

@ -5,6 +5,6 @@
"declarationMap": false
},
"angularCompilerOptions": {
"enableIvy": false
"compilationMode": "partial"
}
}

View file

@ -69,21 +69,12 @@ import 'zone.js'; // Included with Angular CLI.
// 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';
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
/**
* 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`.
/***************************************************************************************************
* APPLICATION IMPORTS
*/

View file

@ -47,7 +47,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$/);

View file

@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/
/** IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags

View file

@ -17,7 +17,9 @@ declare const require: {
// 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$/);

View file

@ -35,16 +35,16 @@
],
"dependencies": {
"@angular-architects/module-federation": "^12.1.1",
"@angular/animations": "12.1.0",
"@angular/animations": "13.4.0",
"@angular/cdk": "^12",
"@angular/common": "12.1.0",
"@angular/compiler": "12.1.0",
"@angular/core": "12.1.0",
"@angular/forms": "12.1.0",
"@angular/localize": "12.1.0",
"@angular/platform-browser": "12.1.0",
"@angular/platform-browser-dynamic": "12.1.0",
"@angular/router": "12.1.0",
"@angular/common": "13.4.0",
"@angular/compiler": "13.4.0",
"@angular/core": "13.4.0",
"@angular/forms": "13.4.0",
"@angular/localize": "13.4.0",
"@angular/platform-browser": "13.4.0",
"@angular/platform-browser-dynamic": "13.4.0",
"@angular/router": "13.4.0",
"@apollo/client": "^3.3.7",
"@apollo/link-error": "^2.0.0-beta.3",
"@ng-bootstrap/ng-bootstrap": "11.0.0",
@ -76,11 +76,11 @@
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^12.1.0",
"@angular-devkit/build-angular": "^13.3.11",
"@angular-eslint/builder": "0.0.1-alpha.18",
"@angular/cli": "12.1.0",
"@angular/compiler-cli": "12.1.0",
"@angular/language-service": "12.1.0",
"@angular/cli": "13.3.11",
"@angular/compiler-cli": "13.4.0",
"@angular/language-service": "13.4.0",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "^2.0.6",
"@types/lodash-es": "^4.17.4",
@ -107,9 +107,9 @@
"karma-firefox-launcher": "^1.3.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^12.1.0",
"ng-packagr": "^13.3.1",
"prettier": "^1.16.1",
"ts-node": "^8.10.1",
"typescript": "~4.3.4"
"typescript": "~4.6.4"
}
}
}

6185
yarn.lock

File diff suppressed because it is too large Load diff