Skip to content

Commit

Permalink
chore: update nx to v18.2.0 and angular to v17.3.0 (DEV-4406) (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpro7 authored Dec 9, 2024
1 parent 6e4e035 commit 1718fb0
Show file tree
Hide file tree
Showing 65 changed files with 16,715 additions and 24,481 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
],
"excludedFiles": [
"*.spec.ts",
"**/test-setup.ts"
"**/test-setup.ts",
"**/environment*.ts"
],
"extends": [
"airbnb-base",
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/coverage

.angular

/.nx/cache
52 changes: 26 additions & 26 deletions apps/dateAdapter/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true,
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
});
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true,
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
});
};
28 changes: 8 additions & 20 deletions apps/dateAdapter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
"main": "apps/dateAdapter/src/main.ts",
"polyfills": "apps/dateAdapter/src/polyfills.ts",
"tsConfig": "apps/dateAdapter/tsconfig.app.json",
"assets": [
"apps/dateAdapter/src/favicon.ico",
"apps/dateAdapter/src/assets"
],
"assets": ["apps/dateAdapter/src/favicon.ico", "apps/dateAdapter/src/assets"],
"styles": ["apps/dateAdapter/src/styles.scss"],
"scripts": []
},
Expand Down Expand Up @@ -53,32 +50,26 @@
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "dateAdapter:build"
"buildTarget": "dateAdapter:build"
},
"configurations": {
"development": {
"browserTarget": "dateAdapter:build:development"
"buildTarget": "dateAdapter:build:development"
},
"production": {
"browserTarget": "dateAdapter:build:production",
"buildTarget": "dateAdapter:build:production"
}
}
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "dateAdapter:build"
"buildTarget": "dateAdapter:build"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/dateAdapter/**/*.ts",
"apps/dateAdapter/**/*.html"
]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
Expand All @@ -89,10 +80,7 @@
"karmaConfig": "apps/dateAdapter/karma.conf.js",
"styles": ["apps/dateAdapter/src/styles.scss"],
"scripts": [],
"assets": [
"apps/dateAdapter/src/favicon.ico",
"apps/dateAdapter/src/assets"
]
"assets": ["apps/dateAdapter/src/favicon.ico", "apps/dateAdapter/src/assets"]
},
"configurations": {
"ci": {
Expand Down
2 changes: 1 addition & 1 deletion apps/dateAdapter/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

Expand Down
52 changes: 26 additions & 26 deletions apps/dsp-app/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true,
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
});
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true,
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
});
};
49 changes: 16 additions & 33 deletions apps/dsp-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/dsp-app",
"index": "apps/dsp-app/src/index.html",
Expand All @@ -39,15 +37,11 @@
"output": "/assets/"
}
],
"styles": [
"apps/dsp-app/src/styles.scss"
],
"styles": ["apps/dsp-app/src/styles.scss"],
"stylePreprocessorOptions": {
"includePaths": ["apps/dsp-app/src/styles"]
},
"scripts": [
"node_modules/openseadragon/build/openseadragon/openseadragon.min.js"
]
"scripts": ["node_modules/openseadragon/build/openseadragon/openseadragon.min.js"]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -161,48 +155,41 @@
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "dsp-app:build"
"buildTarget": "dsp-app:build"
},
"configurations": {
"development": {
"browserTarget": "dsp-app:build:development"
"buildTarget": "dsp-app:build:development"
},
"production": {
"browserTarget": "dsp-app:build:production"
"buildTarget": "dsp-app:build:production"
},
"dev-server": {
"browserTarget": "dsp-app:build:dev-server"
"buildTarget": "dsp-app:build:dev-server"
},
"test-server": {
"browserTarget": "dsp-app:build:test-server"
"buildTarget": "dsp-app:build:test-server"
},
"ls-test-server": {
"browserTarget": "dsp-app:build:ls-test-server"
"buildTarget": "dsp-app:build:ls-test-server"
},
"0845-test-server": {
"browserTarget": "dsp-app:build:ls-test-server"
"buildTarget": "dsp-app:build:ls-test-server"
},
"stage-server": {
"browserTarget": "dsp-app:build:stage-server"
"buildTarget": "dsp-app:build:stage-server"
}
}
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "dsp-app:build"
"buildTarget": "dsp-app:build"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"apps/dsp-app/**/*.{ts,html}"
]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
Expand All @@ -212,12 +199,8 @@
"tsConfig": "apps/dsp-app/tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"karmaConfig": "apps/dsp-app/karma.conf.js",
"styles": [
"apps/dsp-app/src/styles.scss"
],
"scripts": [
"node_modules/openseadragon/build/openseadragon/openseadragon.min.js"
],
"styles": ["apps/dsp-app/src/styles.scss"],
"scripts": ["node_modules/openseadragon/build/openseadragon/openseadragon.min.js"],
"assets": [
"apps/dsp-app/src/favicon.ico",
"apps/dsp-app/src/config",
Expand Down
2 changes: 1 addition & 1 deletion apps/dsp-app/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/** *************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // included with Angular CLI.
import 'zone.js'; // included with Angular CLI.

/** *************************************************************************************************
* APPLICATION IMPORTS
Expand Down
2 changes: 1 addition & 1 deletion apps/dsp-app/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This file is required by karma.conf.js and loads recursively all the .spec and framework files.
*/

import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

Expand Down
20 changes: 5 additions & 15 deletions libs/jdnconvertiblecalendar/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/jdnconvertiblecalendar/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
Expand All @@ -22,26 +23,15 @@
"dependsOn": ["build"]
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/jdnconvertiblecalendar/**/*.ts"]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/jdnconvertiblecalendar/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "libs/jdnconvertiblecalendar/jest.config.ts"
}
}
},
"tags": []
}
}
Loading

0 comments on commit 1718fb0

Please sign in to comment.