Skip to content

Commit

Permalink
chore: migrate to nx 15.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Mar 1, 2023
1 parent e3d48f0 commit 0d7f926
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 209 deletions.
112 changes: 12 additions & 100 deletions migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,115 +2,27 @@
"migrations": [
{
"cli": "nx",
"version": "14.0.6",
"description": "Remove root property from project.json files",
"implementation": "./src/migrations/update-14-0-6/remove-roots",
"version": "15.0.0-beta.1",
"description": "Replace implicitDependencies with namedInputs + target inputs",
"implementation": "./src/migrations/update-15-0-0/migrate-to-inputs",
"package": "nx",
"name": "14-0-6-remove-root"
"name": "15.0.0-migrate-to-inputs"
},
{
"cli": "nx",
"version": "14.2.0-beta.0",
"description": "Add JSON Schema to Nx configuration files",
"implementation": "./src/migrations/update-14-2-0/add-json-schema",
"version": "15.0.0-beta.1",
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
"implementation": "./src/migrations/update-15-0-0/prefix-outputs",
"package": "nx",
"name": "14-2-0-add-json-schema"
"name": "15.0.0-prefix-outputs"
},
{
"version": "15.0.0-beta.0",
"cli": "nx",
"version": "14.2.0-beta.0",
"description": "Remove default collection from configuration to switch to prompts for collection",
"implementation": "./src/migrations/update-14-2-0/remove-default-collection",
"package": "nx",
"name": "14-2-0-remove-default-collection"
},
{
"cli": "nx",
"version": "14.2.0-beta.5",
"description": "Replace all ./ and ../ in outputs with absolute paths",
"implementation": "./src/migrations/update-14-2-0/replace-all-relative-outputs-with-absolute",
"package": "nx",
"name": "14-2-0-replace-relative-outputs-with-absolute"
},
{
"cli": "nx",
"version": "14.3.4-beta.1",
"description": "Replace targetDependencies with targetDefaults",
"implementation": "./src/migrations/update-14-3-4/create-target-defaults",
"package": "nx",
"name": "14.3.4-create-target-defaults"
},
{
"cli": "nx",
"version": "14.2.0-beta.0",
"description": "Adjusts calls to createTreeWithEmptyWorkspace to reflect new API",
"factory": "./src/migrations/update-14-2-0/split-create-empty-tree",
"package": "@nrwl/devkit",
"name": "split-create-tree"
},
{
"version": "14.2.0",
"description": "Explicitly enable sourceAnalysis for all workspaces extending from npm.json or core.json (this was default behavior prior to 14.2)",
"cli": "nx",
"implementation": "./src/migrations/update-14-2-0/enable-source-analysis",
"package": "@nrwl/workspace",
"name": "14-2-0-enable-source-analysis"
},
{
"version": "14.8.0-beta.0",
"description": "Migrates from @nrwl/workspace:run-commands to nx:run-commands",
"cli": "nx",
"implementation": "./src/migrations/update-14-8-0/change-run-commands-executor",
"package": "@nrwl/workspace",
"name": "14-8-0-change-run-commands-executor"
},
{
"version": "14.1.5-beta.0",
"cli": "nx",
"description": "Update to export default in jest config and revert jest.preset.ts to jest.preset.js",
"factory": "./src/migrations/update-14-1-5/update-exports-jest-config",
"package": "@nrwl/jest",
"name": "update-to-export-default"
},
{
"version": "14.5.5-beta.0",
"cli": "nx",
"description": "Exclude jest.config.ts from tsconfig where missing.",
"factory": "./src/migrations/update-14-0-0/update-jest-config-ext",
"description": "Stop hashing jest spec files and config files for build targets and dependent tasks",
"factory": "./src/migrations/update-15-0-0/add-jest-inputs",
"package": "@nrwl/jest",
"name": "exclude-jest-config-from-ts-config"
},
{
"version": "14.6.0-beta.0",
"cli": "nx",
"description": "Update jest configs to support jest 28 changes (https://jestjs.io/docs/upgrading-to-jest28#configuration-options)",
"factory": "./src/migrations/update-14-6-0/update-configs-jest-28",
"package": "@nrwl/jest",
"name": "update-configs-jest-28"
},
{
"version": "14.6.0-beta.0",
"cli": "nx",
"description": "Update jest test files to support jest 28 changes (https://jestjs.io/docs/upgrading-to-jest28)",
"factory": "./src/migrations/update-14-6-0/update-tests-jest-28",
"package": "@nrwl/jest",
"name": "update-tests-jest-28"
},
{
"cli": "nx",
"version": "14.1.5-beta.0",
"description": "Rename option swcrcPath to swcrc, and resolve relative to workspace root",
"factory": "./src/migrations/update-14-1-5/update-swcrc-path",
"package": "@nrwl/js",
"name": "update-swcrc-path"
},
{
"cli": "nx",
"version": "14.7.6-beta.1",
"description": "Update usages of webpack executors to @nrwl/webpack",
"factory": "./src/migrations/update-14-7-6/update-webpack-executor",
"package": "@nrwl/node",
"name": "update-webpack-executor"
"name": "add-jest-inputs"
}
]
}
19 changes: 12 additions & 7 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "fluentui",
"implicitDependencies": {
"package.json": {
"dependencies": "*",
"devDependencies": "*"
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
Expand Down Expand Up @@ -37,7 +31,8 @@
"dependsOn": ["build"]
},
"test": {
"dependsOn": ["build"]
"dependsOn": ["build"],
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
},
"type-check": {
"dependsOn": ["build"]
Expand All @@ -48,5 +43,15 @@
"prepare": {
"dependsOn": ["^prepare"]
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s"
]
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@
"@microsoft/eslint-plugin-sdl": "0.1.9",
"@microsoft/load-themed-styles": "1.10.26",
"@microsoft/loader-load-themed-styles": "2.0.17",
"@nrwl/cli": "14.8.6",
"@nrwl/devkit": "14.8.6",
"@nrwl/jest": "14.8.6",
"@nrwl/js": "14.8.6",
"@nrwl/node": "14.8.6",
"@nrwl/workspace": "14.8.6",
"@nrwl/cli": "15.0.0",
"@nrwl/devkit": "15.0.0",
"@nrwl/jest": "15.0.0",
"@nrwl/js": "15.0.0",
"@nrwl/node": "15.0.0",
"@nrwl/workspace": "15.0.0",
"@octokit/rest": "18.12.0",
"@storybook/addon-a11y": "6.5.15",
"@storybook/addon-actions": "6.5.15",
Expand Down Expand Up @@ -280,7 +280,7 @@
"node-fetch": "2.6.7",
"node-plop": "0.25.0",
"node-polyfill-webpack-plugin": "1.0.2",
"nx": "14.8.6",
"nx": "15.0.0",
"p-queue": "6.6.2",
"parse-diff": "0.7.1",
"path-browserify": "1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"targets": {
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/tools"],
"outputs": ["{workspaceRoot}/coverage/tools"],
"options": {
"jestConfig": "tools/jest.config.js",
"passWithNoTests": true
Expand Down
Loading

0 comments on commit 0d7f926

Please sign in to comment.