Skip to content

Commit

Permalink
chore: update angular and nx to v15
Browse files Browse the repository at this point in the history
  • Loading branch information
N1XUS committed Dec 8, 2022
1 parent d690050 commit 54f364f
Show file tree
Hide file tree
Showing 1,433 changed files with 5,801 additions and 5,932 deletions.
10 changes: 0 additions & 10 deletions apps/docs/browserslist

This file was deleted.

11 changes: 8 additions & 3 deletions apps/docs/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "docs",
"sourceRoot": "apps/docs/src",
"projectType": "application",
"prefix": "fundamental-ngx",
Expand Down Expand Up @@ -174,6 +175,9 @@
}
},
"configurations": {
"development": {
"tsConfig": "apps/docs/tsconfig.app.json"
},
"production": {
"fileReplacements": [
{
Expand Down Expand Up @@ -210,11 +214,11 @@
}
},
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "",
"defaultConfiguration": "development",
"dependsOn": ["^build", "generate-typedoc"]
},
"serve": {
"executor": "@nrwl/angular:webpack-server",
"executor": "@nrwl/angular:webpack-dev-server",
"options": {
"browserTarget": "docs:build"
},
Expand All @@ -230,7 +234,8 @@
"disableHostCheck": true,
"liveReload": false
}
}
},
"defaultConfiguration": "hot-module-replacement"
},
"lint": {
"executor": "@nrwl/linter:eslint",
Expand Down
1 change: 0 additions & 1 deletion apps/docs/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const routes: Routes = [
HttpClientModule,
RouterModule.forRoot(routes, {
useHash: true,
relativeLinkResolution: 'legacy',
preloadingStrategy: PreloadAllModules
}),
MarkdownModule.forRoot({ loader: HttpClient }),
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/*.d.ts", "**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"enableIvy": true
},
"compilerOptions": {
"target": "es2020"
"target": "es2022"
}
}
4 changes: 3 additions & 1 deletion apps/docs/tsconfig.netlify.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"types": ["node"]
"types": ["node"],
"target": "ES2022",
"useDefineForClassFields": false
},
"exclude": ["**/*.spec.ts"],
"include": ["**/*.ts"]
Expand Down
1 change: 1 addition & 0 deletions e2e/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "components-e2e",
"sourceRoot": "e2e",
"projectType": "application",
"targets": {
Expand Down
2 changes: 1 addition & 1 deletion libs/core/schematics/migrations/migration-0-37/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function removeStylesFromConfig(): Rule {
];

const stylesToRemove = [
'node_modules/fundamental-styles/dist/icon.css',
'~fundamental-styles/dist/icon.css',
'./node_modules/@sap-theming/theming-base-content/content/Base/baseLib/sap_fiori_3/css_variables.css',
'./node_modules/fundamental-styles/dist/theming/sap_fiori_3.css',
...themes.map(
Expand Down
4 changes: 2 additions & 2 deletions libs/core/src/lib/action-bar/action-bar.component.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import '~fundamental-styles/dist/action-bar';
@import '~fundamental-styles/dist/title';
@import '~fundamental-styles/dist/action-bar.css';
@import '~fundamental-styles/dist/title.css';
3 changes: 2 additions & 1 deletion libs/core/src/lib/action-bar/project.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "core-action-bar",
"projectType": "library",
"sourceRoot": "libs/core/src/lib/action-bar",
"prefix": "fd",
"targets": {
"build": {
"executor": "@nrwl/angular:ng-packagr-lite",
"outputs": ["dist/libs/core/action-bar"],
"outputs": ["{workspaceRoot}/dist/libs/core/action-bar"],
"options": {
"tsConfig": "libs/core/src/lib/action-bar/tsconfig.lib.json",
"project": "libs/core/src/lib/action-bar/ng-package.json",
Expand Down
6 changes: 0 additions & 6 deletions libs/core/src/lib/action-bar/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
2 changes: 1 addition & 1 deletion libs/core/src/lib/action-bar/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"strict": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": true,
"target": "es2020"
"target": "es2022"
}
}
5 changes: 3 additions & 2 deletions libs/core/src/lib/action-bar/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2020",
"target": "ES2022",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
"lib": ["dom", "es2018"],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
4 changes: 3 additions & 1 deletion libs/core/src/lib/action-bar/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"target": "ES2022",
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
5 changes: 3 additions & 2 deletions libs/core/src/lib/action-bar/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jasmine"]
"types": ["jasmine"],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["./test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
Expand Down
2 changes: 1 addition & 1 deletion libs/core/src/lib/action-sheet/action-sheet.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~fundamental-styles/dist/action-sheet';
@import '~fundamental-styles/dist/action-sheet.css';

fd-action-sheet-body {
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion libs/core/src/lib/action-sheet/project.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "core-action-sheet",
"projectType": "library",
"sourceRoot": "libs/core/src/lib/action-sheet",
"prefix": "fd",
"targets": {
"build": {
"executor": "@nrwl/angular:ng-packagr-lite",
"outputs": ["dist/libs/core/action-sheet"],
"outputs": ["{workspaceRoot}/dist/libs/core/action-sheet"],
"options": {
"tsConfig": "libs/core/src/lib/action-sheet/tsconfig.lib.json",
"project": "libs/core/src/lib/action-sheet/ng-package.json",
Expand Down
6 changes: 0 additions & 6 deletions libs/core/src/lib/action-sheet/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
2 changes: 1 addition & 1 deletion libs/core/src/lib/action-sheet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"strict": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": true,
"target": "es2020"
"target": "es2022"
}
}
5 changes: 3 additions & 2 deletions libs/core/src/lib/action-sheet/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2020",
"target": "ES2022",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
"lib": ["dom", "es2018"],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
4 changes: 3 additions & 1 deletion libs/core/src/lib/action-sheet/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"target": "ES2022",
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
5 changes: 3 additions & 2 deletions libs/core/src/lib/action-sheet/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jasmine"]
"types": ["jasmine"],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["./test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
Expand Down
2 changes: 1 addition & 1 deletion libs/core/src/lib/alert/alert.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~fundamental-styles/dist/alert';
@import '~fundamental-styles/dist/alert.css';

.fd-alert {
display: block;
Expand Down
3 changes: 2 additions & 1 deletion libs/core/src/lib/alert/project.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "core-alert",
"projectType": "library",
"sourceRoot": "libs/core/src/lib/alert",
"prefix": "fd",
"targets": {
"build": {
"executor": "@nrwl/angular:ng-packagr-lite",
"outputs": ["dist/libs/core/alert"],
"outputs": ["{workspaceRoot}/dist/libs/core/alert"],
"options": {
"tsConfig": "libs/core/src/lib/alert/tsconfig.lib.json",
"project": "libs/core/src/lib/alert/ng-package.json",
Expand Down
6 changes: 0 additions & 6 deletions libs/core/src/lib/alert/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
2 changes: 1 addition & 1 deletion libs/core/src/lib/alert/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"strict": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": true,
"target": "es2020"
"target": "es2022"
}
}
5 changes: 3 additions & 2 deletions libs/core/src/lib/alert/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2020",
"target": "ES2022",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
"lib": ["dom", "es2018"],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
4 changes: 3 additions & 1 deletion libs/core/src/lib/alert/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"target": "ES2022",
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
5 changes: 3 additions & 2 deletions libs/core/src/lib/alert/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jasmine"]
"types": ["jasmine"],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["./test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
Expand Down
2 changes: 1 addition & 1 deletion libs/core/src/lib/avatar-group/avatar-group.component.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '~fundamental-styles/dist/avatar-group';
@import '~fundamental-styles/dist/avatar-group.css';
3 changes: 2 additions & 1 deletion libs/core/src/lib/avatar-group/project.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "core-avatar-group",
"projectType": "library",
"sourceRoot": "libs/core/src/lib/avatar-group",
"prefix": "fd",
"targets": {
"build": {
"executor": "@nrwl/angular:ng-packagr-lite",
"outputs": ["dist/libs/core/avatar-group"],
"outputs": ["{workspaceRoot}/dist/libs/core/avatar-group"],
"options": {
"tsConfig": "libs/core/src/lib/avatar-group/tsconfig.lib.json",
"project": "libs/core/src/lib/avatar-group/ng-package.json",
Expand Down
6 changes: 0 additions & 6 deletions libs/core/src/lib/avatar-group/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
2 changes: 1 addition & 1 deletion libs/core/src/lib/avatar-group/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"strict": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": true,
"target": "es2020"
"target": "es2022"
}
}
Loading

0 comments on commit 54f364f

Please sign in to comment.