Skip to content

Commit

Permalink
feat(repo): upgrade to latest version of Nx
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed May 16, 2023
1 parent 1733c18 commit e28ba93
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 62 deletions.
76 changes: 76 additions & 0 deletions code/migrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"migrations": [
{
"version": "15.7.0-beta.0",
"description": "Split global configuration files into individual project.json files. This migration has been added automatically to the beginning of your migration set to retroactively make them work with the new version of Nx.",
"cli": "nx",
"implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files",
"package": "@nx/workspace",
"name": "15-7-0-split-configuration-into-project-json-files"
},
{
"cli": "nx",
"version": "15.8.2-beta.0",
"description": "Updates the nx wrapper.",
"implementation": "./src/migrations/update-15-8-2/update-nxw",
"package": "nx",
"name": "15.8.2-update-nx-wrapper"
},
{
"cli": "nx",
"version": "16.0.0-beta.0",
"description": "Remove @nrwl/cli.",
"implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli",
"package": "nx",
"name": "16.0.0-remove-nrwl-cli"
},
{
"cli": "nx",
"version": "16.0.0-beta.9",
"description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
"implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens",
"package": "nx",
"name": "16.0.0-tokens-for-depends-on"
},
{
"cli": "nx",
"version": "16.0.0-beta.0",
"description": "Replace @nrwl/nx-cloud with nx-cloud",
"implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner",
"package": "nx",
"name": "16.0.0-update-nx-cloud-runner"
},
{
"version": "15.7.0-beta.0",
"description": "Split global configuration files (e.g., workspace.json) into individual project.json files.",
"cli": "nx",
"implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files",
"package": "@nx/workspace",
"name": "15-7-0-split-configuration-into-project-json-files"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/workspace with @nx/workspace",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/workspace",
"name": "update-16-0-0-add-nx-packages"
},
{
"version": "16.0.0-beta.4",
"description": "Generates a plugin called 'workspace-plugin' containing your workspace generators.",
"cli": "nx",
"implementation": "./src/migrations/update-16-0-0/move-workspace-generators-to-local-plugin",
"package": "@nx/workspace",
"name": "16-0-0-move-workspace-generators-into-local-plugin"
},
{
"version": "16.0.0-beta.9",
"description": "Fix .babelrc presets if it contains an invalid entry for @nx/web/babel.",
"cli": "nx",
"implementation": "./src/migrations/update-16-0-0/fix-invalid-babelrc",
"package": "@nx/workspace",
"name": "16-0-0-fix-invalid-babelrc"
}
]
}
24 changes: 20 additions & 4 deletions code/nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
"runner": "nx-cloud",
"options": {
"cacheableOperations": ["prep"],
"accessToken": "NGVmYTkxMmItYzY3OS00MjkxLTk1ZDktZDFmYTFmNmVlNGY4fHJlYWQ=",
Expand All @@ -29,13 +29,29 @@
},
"targetDefaults": {
"build": {
"dependsOn": [{ "projects": "dependencies", "target": "build" }]
"dependsOn": [
{
"target": "build",
"dependencies": true
}
]
},
"package": {
"dependsOn": [{ "projects": "dependencies", "target": "package" }]
"dependsOn": [
{
"target": "package",
"dependencies": true
}
]
},
"prep": {
"dependsOn": [{ "projects": "dependencies", "target": "prep", "params": "forward" }],
"dependsOn": [
{
"target": "prep",
"params": "forward",
"dependencies": true
}
],
"outputs": ["{projectRoot}/dist"]
}
}
Expand Down
9 changes: 4 additions & 5 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@
"@emotion/jest": "^11.10.0",
"@jest/globals": "^29.3.1",
"@linear/sdk": "^1.21.0",
"@nrwl/cli": "^15.4.5",
"@nrwl/nx-cloud": "^15.0.2",
"@nrwl/workspace": "^15.4.5",
"@nx/workspace": "16.1.4",
"@playwright/test": "1.32.3",
"@storybook/addon-a11y": "workspace:*",
"@storybook/addon-actions": "workspace:*",
Expand Down Expand Up @@ -244,7 +242,8 @@
"lint-staged": "^10.5.4",
"lodash": "^4.17.21",
"node-gyp": "^8.4.0",
"nx": "^15.4.5",
"nx": "16.1.4",
"nx-cloud": "16.0.5",
"playwright": "1.32.3",
"prettier": "2.8.0",
"process": "^0.11.10",
Expand All @@ -255,7 +254,7 @@
"trash": "^7.0.0",
"ts-dedent": "^2.0.0",
"ts-node": "^10.9.1",
"typescript": "~4.9.3",
"typescript": "5.0.4",
"util": "^0.12.4",
"vite": "^4.0.0",
"vite-plugin-turbosnap": "^1.0.1",
Expand Down
Loading

0 comments on commit e28ba93

Please sign in to comment.