Skip to content

Commit

Permalink
chore: run nx migrations to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Mar 22, 2024
1 parent 1be731b commit 4a77594
Show file tree
Hide file tree
Showing 4 changed files with 2,695 additions and 1,647 deletions.
144 changes: 73 additions & 71 deletions migrations.json
Original file line number Diff line number Diff line change
@@ -1,117 +1,119 @@
{
"migrations": [
{
"version": "17.1.0-beta.1",
"description": "Updates for @typescript-utils/utils v6.9.1+",
"implementation": "./src/migrations/update-17-1-0/update-typescript-eslint",
"package": "@nx/eslint",
"name": "update-typescript-eslint"
"cli": "nx",
"version": "17.3.0-beta.6",
"description": "Updates the nx wrapper.",
"implementation": "./src/migrations/update-17-3-0/update-nxw",
"package": "nx",
"name": "17.3.0-update-nx-wrapper"
},
{
"version": "17.2.0-beta.0",
"description": "Simplify eslintFilePatterns",
"implementation": "./src/migrations/update-17-2-0/simplify-eslint-patterns",
"package": "@nx/eslint",
"name": "simplify-eslint-patterns"
"cli": "nx",
"version": "18.0.0-beta.2",
"description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
"implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
"x-repair-skip": true,
"package": "nx",
"name": "18.0.0-disable-adding-plugins-for-existing-workspaces"
},
{
"version": "18.1.0-beta.3",
"description": "Moves affected.defaultBase to defaultBase in `nx.json`",
"implementation": "./src/migrations/update-17-2-0/move-default-base",
"package": "nx",
"name": "move-default-base-to-nx-json-root"
},
{
"version": "17.1.0-beta.2",
"description": "Move jest executor options to nx.json targetDefaults",
"implementation": "./src/migrations/update-17-1-0/move-options-to-target-defaults",
"package": "@nx/jest",
"version": "17.2.9",
"description": "Move executor options to target defaults",
"implementation": "./src/migrations/update-17-2-9/move-options-to-target-defaults",
"package": "@nx/eslint",
"name": "move-options-to-target-defaults"
},
{
"cli": "nx",
"version": "17.2.1-beta.0",
"description": "Add webpack.config.js file when webpackConfig is not defined",
"implementation": "./src/migrations/update-17-2-1/webpack-config-setup",
"package": "@nx/webpack",
"name": "update-17-2-1-webpack-config-setup"
"version": "18.1.0-beta.3",
"description": "Update to Cypress ^13.6.6 if the workspace is using Cypress v13 to ensure workspaces don't use v13.6.5 which has an issue when verifying Cypress.",
"implementation": "./src/migrations/update-18-1-0/update-cypress-version-13-6-6",
"package": "@nx/cypress",
"name": "update-cypress-version-13-6-6"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Update the @angular/cli package version to ~17.0.0.",
"factory": "./src/migrations/update-17-1-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-17-0-0"
"version": "18.0.0-beta.0",
"description": "Add NX_MF_DEV_SERVER_STATIC_REMOTES to inputs for task hashing when '@nx/webpack:webpack' is used for Module Federation.",
"factory": "./src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults",
"package": "@nx/react",
"name": "add-module-federation-env-var-to-target-defaults"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Rename 'browserTarget' to 'buildTarget'.",
"factory": "./src/migrations/update-17-1-0/browser-target-to-build-target",
"package": "@nx/angular",
"name": "rename-browser-target-to-build-target"
"version": "18.1.1-beta.0",
"description": "Ensure targetDefaults inputs for task hashing when '@nx/webpack:webpack' is used are correct for Module Federation.",
"factory": "./src/migrations/update-18-1-1/fix-target-defaults-inputs",
"package": "@nx/react",
"name": "fix-target-defaults-for-webpack"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"version": "17.3.0-beta.10",
"requires": {
"@angular/core": ">=17.0.0"
"@angular/core": ">=17.1.0"
},
"description": "Replace usages of '@nguniversal/builders' with '@angular-devkit/build-angular'.",
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-builders",
"description": "Update the @angular/cli package version to ~17.1.0.",
"factory": "./src/migrations/update-17-3-0/update-angular-cli",
"package": "@nx/angular",
"name": "replace-nguniversal-builders"
"name": "update-angular-cli-version-17-1-0"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"version": "17.3.0-beta.10",
"requires": {
"@angular/core": ">=17.0.0"
"@angular/core": ">=17.1.0"
},
"description": "Replace usages of '@nguniversal/' packages with '@angular/ssr'.",
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-engines",
"description": "Add 'browser-sync' as dev dependency when '@angular-devkit/build-angular:ssr-dev-server' or '@nx/angular:module-federation-dev-ssr' is used.",
"factory": "./src/migrations/update-17-3-0/add-browser-sync-dependency",
"package": "@nx/angular",
"name": "replace-nguniversal-engines"
"name": "add-browser-sync-dependency"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"version": "17.3.0-beta.10",
"requires": {
"@angular/core": ">=17.0.0"
"@angular/core": ">=17.1.0"
},
"description": "Replace the deep imports from 'zone.js/dist/zone' and 'zone.js/dist/zone-testing' with 'zone.js' and 'zone.js/testing'.",
"factory": "./src/migrations/update-17-1-0/update-zone-js-deep-import",
"description": "Add 'autoprefixer' as dev dependency when '@nx/angular:ng-packagr-lite' or '@nx/angular:package` is used.",
"factory": "./src/migrations/update-17-3-0/add-autoprefixer-dependency",
"package": "@nx/angular",
"name": "update-zone-js-deep-import"
"name": "add-autoprefixer-dependency"
},
{
"cli": "nx",
"version": "17.2.0-beta.2",
"description": "Rename '@nx/angular:webpack-dev-server' executor to '@nx/angular:dev-server'",
"factory": "./src/migrations/update-17-2-0/rename-webpack-dev-server",
"version": "18.0.0-beta.0",
"description": "Add NX_MF_DEV_SERVER_STATIC_REMOTES to inputs for task hashing when '@nx/angular:webpack-browser' is used for Module Federation.",
"factory": "./src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults",
"package": "@nx/angular",
"name": "rename-webpack-dev-server-executor"
"name": "add-module-federation-env-var-to-target-defaults"
},
{
"version": "17.0.0",
"description": "Angular v17 introduces a new control flow syntax that uses the @ and } characters. This migration replaces the existing usages with their corresponding HTML entities.",
"factory": "./migrations/block-template-entities/bundle",
"package": "@angular/core",
"name": "block-template-entities"
},
{
"version": "17.0.0",
"description": "CompilerOption.useJit and CompilerOption.missingTranslation are unused under Ivy. This migration removes their usage",
"factory": "./migrations/compiler-options/bundle",
"package": "@angular/core",
"name": "migration-v17-compiler-options"
"cli": "nx",
"version": "18.1.0-beta.1",
"requires": {
"@angular/core": ">=17.2.0"
},
"description": "Update the @angular/cli package version to ~17.2.0.",
"factory": "./src/migrations/update-18-1-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-17-2-0"
},
{
"version": "17.0.0",
"description": "Updates `TransferState`, `makeStateKey`, `StateKey` imports from `@angular/platform-browser` to `@angular/core`.",
"factory": "./migrations/transfer-state/bundle",
"package": "@angular/core",
"name": "migration-transfer-state"
"cli": "nx",
"version": "18.1.1-beta.0",
"description": "Ensure targetDefaults inputs for task hashing when '@nx/angular:webpack-browser' is used are correct for Module Federation.",
"factory": "./src/migrations/update-18-1-1/fix-target-defaults-inputs",
"package": "@nx/angular",
"name": "fix-target-defaults-for-webpack-browser"
}
]
}
38 changes: 28 additions & 10 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true
},
"lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
],
"cache": true
},
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.preset.js"
],
"options": {
"passWithNoTests": true
},
Expand All @@ -22,10 +27,20 @@
"codeCoverage": true
}
}
},
"@nx/eslint:lint": {
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json"
],
"cache": true
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
Expand All @@ -34,7 +49,9 @@
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s"
],
"sharedGlobals": ["{workspaceRoot}/babel.config.json"]
"sharedGlobals": [
"{workspaceRoot}/babel.config.json"
]
},
"workspaceLayout": {
"appsDir": "apps",
Expand Down Expand Up @@ -70,5 +87,6 @@
}
}
},
"nxCloudAccessToken": "YTRkYmQ1YTItZDU1OS00NDA2LTlmNjAtNjVhMGQ1MmIwYTNlfHJlYWQtd3JpdGU="
"nxCloudAccessToken": "YTRkYmQ1YTItZDU1OS00NDA2LTlmNjAtNjVhMGQ1MmIwYTNlfHJlYWQtd3JpdGU=",
"useInferencePlugins": false
}
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,67 +7,67 @@
},
"private": true,
"dependencies": {
"@angular/animations": "17.0.9",
"@angular/common": "17.0.9",
"@angular/compiler": "17.0.9",
"@angular/core": "17.0.9",
"@angular/forms": "17.0.9",
"@angular/platform-browser": "17.0.9",
"@angular/platform-browser-dynamic": "17.0.9",
"@angular/router": "17.0.9",
"@angular/animations": "17.2.4",
"@angular/common": "17.2.4",
"@angular/compiler": "17.2.4",
"@angular/core": "17.2.4",
"@angular/forms": "17.2.4",
"@angular/platform-browser": "17.2.4",
"@angular/platform-browser-dynamic": "17.2.4",
"@angular/router": "17.2.4",
"@jscutlery/semver": "^2.29.3",
"@nx/angular": "17.2.8",
"@nx/plugin": "17.2.8",
"@nx/angular": "18.1.2",
"@nx/plugin": "18.1.2",
"@phenomnomnominal/tsquery": "^5.0.1",
"@swc/helpers": "0.5.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "0.14.3"
"zone.js": "0.14.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "17.0.10",
"@angular-devkit/core": "17.0.10",
"@angular-devkit/schematics": "17.0.10",
"@angular-devkit/build-angular": "17.2.3",
"@angular-devkit/core": "17.2.3",
"@angular-devkit/schematics": "17.2.3",
"@angular-eslint/eslint-plugin": "17.0.1",
"@angular-eslint/eslint-plugin-template": "17.0.1",
"@angular-eslint/template-parser": "17.0.1",
"@angular/cli": "~17.0.0",
"@angular/compiler-cli": "17.0.9",
"@angular/language-service": "17.0.9",
"@angular/cli": "~17.2.0",
"@angular/compiler-cli": "17.2.4",
"@angular/language-service": "17.2.4",
"@babel/core": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-angular": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@nx/cypress": "17.2.8",
"@nx/devkit": "17.2.8",
"@nx/eslint": "17.2.8",
"@nx/eslint-plugin": "17.2.8",
"@nx/jest": "17.2.8",
"@nx/js": "17.2.8",
"@nx/react": "17.2.8",
"@nx/webpack": "17.2.8",
"@nx/workspace": "17.2.8",
"@nx/cypress": "18.1.2",
"@nx/devkit": "18.1.2",
"@nx/eslint": "18.1.2",
"@nx/eslint-plugin": "18.1.2",
"@nx/jest": "18.1.2",
"@nx/js": "18.1.2",
"@nx/react": "18.1.2",
"@nx/webpack": "18.1.2",
"@nx/workspace": "18.1.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@schematics/angular": "17.0.10",
"@schematics/angular": "17.2.3",
"@svgr/webpack": "8.0.1",
"@swc-node/register": "1.6.8",
"@swc-node/register": "1.8.0",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.94",
"@testing-library/angular": "latest",
"@testing-library/jest-dom": "latest",
"@testing-library/react": "13.4.0",
"@types/jest": "29.4.0",
"@types/node": "18.16.9",
"@types/node": "18.19.26",
"@types/react": "18.2.24",
"@types/react-dom": "18.2.9",
"@types/testing-library__jest-dom": "latest",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"babel-jest": "29.4.3",
"cypress": "^13.0.0",
"cypress": "^13.6.6",
"eslint": "8.48.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-cypress": "2.15.1",
Expand All @@ -78,14 +78,14 @@
"husky": "^8.0.0",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jest-preset-angular": "13.1.6",
"jest-preset-angular": "14.0.3",
"jsonc-eslint-parser": "^2.1.0",
"nx": "17.2.8",
"nx": "18.1.2",
"prettier": "^2.6.2",
"react-refresh": "^0.10.0",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "5.2.2",
"typescript": "5.3.3",
"url-loader": "^4.1.1"
}
}
Loading

0 comments on commit 4a77594

Please sign in to comment.