Skip to content

Commit

Permalink
Merge pull request #7 from moshe-azaria-sage/upgrade-packages
Browse files Browse the repository at this point in the history
Auto-update packages - nx v18
  • Loading branch information
moshe-azaria-sage authored Feb 28, 2024
2 parents fc3cee7 + 8c1b84f commit c38d9e5
Show file tree
Hide file tree
Showing 19 changed files with 1,002 additions and 734 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Nx 18 enables using plugins to infer targets by default
# This is disabled for existing workspaces to maintain compatibility
# For more info, see: https://nx.dev/concepts/inferred-tasks
NX_ADD_PLUGINS=true
5 changes: 1 addition & 4 deletions apps/admin-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/admin-e2e/**/*.{js,ts}"]
}
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
Expand Down
5 changes: 1 addition & 4 deletions apps/admin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/admin/**/*.{ts,tsx,js,jsx}"]
}
"outputs": ["{options.outputFile}"]
},
"serve-static": {
"executor": "@nx/web:file-server",
Expand Down
3 changes: 0 additions & 3 deletions apps/cart-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/cart-e2e/**/*.{ts,tsx,js,jsx}"]
},
"outputs": ["{options.outputFile}"]
}
},
Expand Down
3 changes: 0 additions & 3 deletions apps/cart/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/cart/**/*.{ts,tsx,js,jsx}"]
},
"outputs": ["{options.outputFile}"]
},
"test": {
Expand Down
5 changes: 1 addition & 4 deletions apps/landing-page-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/landing-page-e2e/**/*.{js,ts}"]
}
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
Expand Down
5 changes: 1 addition & 4 deletions apps/landing-page/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/landing-page/**/*.{ts,tsx,js,jsx}"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
6 changes: 0 additions & 6 deletions libs/cart/cart-page/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/cart/cart-page/src/**/*.ts",
"libs/cart/cart-page/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
Expand Down
9 changes: 1 addition & 8 deletions libs/shared/cart/state/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/cart/state/src/**/*.ts",
"libs/shared/cart/state/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
Expand All @@ -23,7 +17,6 @@
"outputs": ["{workspaceRoot}/coverage/libs/shared/cart/state"]
}
},
"generators": {
},
"generators": {},
"tags": ["scope:shared", "type:state"]
}
6 changes: 0 additions & 6 deletions libs/shared/e2e-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/e2e-utils/src/**/*.ts",
"libs/shared/e2e-utils/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
}
},
Expand Down
6 changes: 0 additions & 6 deletions libs/shared/header/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/header/src/**/*.ts",
"libs/shared/header/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
Expand Down
6 changes: 0 additions & 6 deletions libs/shared/product/data/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/product/data/src/**/*.ts",
"libs/shared/product/data/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
}
},
Expand Down
6 changes: 0 additions & 6 deletions libs/shared/product/state/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/product/state/src/**/*.ts",
"libs/shared/product/state/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
Expand Down
6 changes: 0 additions & 6 deletions libs/shared/product/types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/product/types/src/**/*.ts",
"libs/shared/product/types/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"build": {
Expand Down
6 changes: 0 additions & 6 deletions libs/shared/product/ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/shared/product/ui/src/**/*.ts",
"libs/shared/product/ui/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
Expand Down
65 changes: 65 additions & 0 deletions migrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"migrations": [
{
"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"
},
{
"cli": "nx",
"version": "18.0.0-beta.2",
"description": "Updates .env 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"
},
{
"cli": "nx",
"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"
},
{
"version": "17.2.0-beta.10",
"description": "Update vite config.",
"implementation": "./src/migrations/update-17-2-0/update-vite-config",
"package": "@nx/vite",
"name": "update-vite-config"
},
{
"version": "17.3.0-beta.0",
"description": "Move the vitest coverage thresholds in their own object if exists and add reporters.",
"implementation": "./src/migrations/update-17-3-0/vitest-coverage-and-reporters",
"package": "@nx/vite",
"name": "vitest-coverage-and-reporters"
},
{
"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"
},
{
"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"
}
]
}
10 changes: 3 additions & 7 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@
"inputs": ["default", "^production"],
"cache": true
},
"lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
Expand All @@ -70,9 +66,9 @@
}
}
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production"]
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
}
},
"namedInputs": {
Expand Down
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,38 @@
"devDependencies": {
"@babel/core": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@nx/cypress": "17.1.2",
"@nx/devkit": "17.1.2",
"@nx/eslint": "17.1.2",
"@nx/eslint-plugin": "17.1.2",
"@nx/jest": "17.1.2",
"@nx/js": "17.1.2",
"@nx/react": "17.1.2",
"@nx/vite": "17.1.2",
"@nx/web": "17.1.2",
"@nx/webpack": "17.1.2",
"@nx/workspace": "17.1.2",
"@nx/cypress": "18.0.4",
"@nx/devkit": "18.0.4",
"@nx/eslint": "18.0.4",
"@nx/eslint-plugin": "18.0.4",
"@nx/jest": "18.0.4",
"@nx/js": "18.0.4",
"@nx/react": "18.0.4",
"@nx/vite": "18.0.4",
"@nx/web": "18.0.4",
"@nx/webpack": "18.0.4",
"@nx/workspace": "18.0.4",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@svgr/webpack": "^8.0.1",
"@swc-node/register": "~1.6.7",
"@swc-node/register": "1.8.0",
"@swc/cli": "~0.1.62",
"@swc/core": "1.3.96",
"@testing-library/react": "14.0.0",
"@types/jest": "29.4.0",
"@types/node": "18.14.2",
"@types/node": "18.19.17",
"@types/react": "18.2.33",
"@types/react-dom": "18.2.14",
"@types/react-router-dom": "5.3.3",
"@typescript-eslint/eslint-plugin": "6.11.0",
"@typescript-eslint/parser": "6.11.0",
"@vitejs/plugin-react": "~4.0.0",
"@vitest/coverage-v8": "~0.32.0",
"@vitest/ui": "~0.32.0",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@vitejs/plugin-react": "4.2.1",
"@vitest/coverage-v8": "0.34.6",
"@vitest/ui": "0.34.7",
"babel-jest": "^29.4.1",
"css-loader": "^6.4.0",
"cypress": "^13.0.0",
"dotenv": "10.0.0",
"eslint": "8.46.0",
"eslint": "8.48.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-cypress": "2.15.1",
"eslint-plugin-import": "2.27.5",
Expand All @@ -80,20 +80,21 @@
"jest-environment-jsdom": "29.4.3",
"jsdom": "~22.1.0",
"netlify": "^2.4.8",
"nx": "17.1.2",
"nx": "18.0.4",
"prettier": "2.6.2",
"react-refresh": "^0.10.0",
"style-loader": "^3.3.0",
"stylus": "0.59.0",
"stylus-loader": "^7.1.0",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "5.2.2",
"typescript": "5.3.3",
"url-loader": "^4.1.1",
"vite": "~4.3.9",
"vite": "5.1.3",
"vite-plugin-dts": "~2.3.0",
"vitest": "~0.32.0",
"vitest": "0.34.6",
"webpack": "^5.75.0",
"webpack-merge": "^5.8.0"
}
}

Loading

0 comments on commit c38d9e5

Please sign in to comment.