This PR updates `nx release` to use the revamped versioning
implementation by default. It also updates and adds relevant
documentation, and provides an automated migration for the new
configuration structure.
For anyone exclusively versioning TS/JS packages, there should be no
real difference to your experience (although a number of bugs have been
fixed and new features around updating multiple `package.json` files at
once are now available to you with this change).
For the lifecycle of Nx v21, `release.version.useLegacyVersioning` will
remain as a option that can be set to `true` to revert to the old
behavior and configuration structure.
NOTE: This should only be a temporary solution, for example if one of
the plugins you use does provide a `VersionActions` based versioning
implementation yet. The option and legacy implementation will be removed
entirely in Nx v22 (in ~6 months).
BREAKING CHANGE:
**⚠️ For any early adopters of `VersionActions` in Nx 20.8 when it was
opt-in, there are breaking changes to the abstract class here as well.**
`manifestRootsToUpdate` has gone from `string[]` to `manifestsToUpdate:
{ manifestPath: string; preserveLocalDependencyProtocols: boolean; }[]`
to support controlling the local dependency updates per manifest in
order to support advanced source vs dist scenarios, and correspondingly
`isLocalDependencyProtocol` has been removed from the abstract class and
the method will no longer be called from the core logic. It should be
thought of as an implementation detail of `updateProjectDependencies`
instead.
58 lines
1.7 KiB
JSON
58 lines
1.7 KiB
JSON
{
|
|
"name": "e2e-graph-client",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "graph/client-e2e/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"e2e-base": {
|
|
"executor": "@nx/cypress:cypress",
|
|
"options": {
|
|
"testingType": "e2e",
|
|
"skipServe": true,
|
|
"browser": "chrome"
|
|
},
|
|
"configurations": {
|
|
"dev": {
|
|
"cypressConfig": "graph/client-e2e/cypress.config.ts"
|
|
},
|
|
"watch": {
|
|
"cypressConfig": "graph/client-e2e/cypress-watch-mode.config.ts"
|
|
},
|
|
"release": {
|
|
"cypressConfig": "graph/client-e2e/cypress-release.config.ts"
|
|
},
|
|
"release-static": {
|
|
"cypressConfig": "graph/client-e2e/cypress-release-static.config.ts"
|
|
}
|
|
},
|
|
"defaultConfiguration": "dev"
|
|
},
|
|
"e2e-local": {
|
|
"executor": "nx:run-commands",
|
|
"outputs": [],
|
|
"options": {
|
|
"commands": [
|
|
"npx nx e2e-base e2e-graph-client --configuration dev",
|
|
"npx nx e2e-base e2e-graph-client --configuration watch",
|
|
"npx nx e2e-base e2e-graph-client --configuration release",
|
|
"npx nx e2e-base e2e-graph-client --configuration release-static"
|
|
],
|
|
"parallel": false
|
|
}
|
|
},
|
|
"DISABLED__e2e": {
|
|
"executor": "nx:run-commands",
|
|
"outputs": [],
|
|
"options": {
|
|
"commands": [
|
|
"npx nx e2e-base e2e-graph-client --configuration dev",
|
|
"npx nx e2e-base e2e-graph-client --configuration release",
|
|
"npx nx e2e-base e2e-graph-client --configuration release-static"
|
|
],
|
|
"parallel": false
|
|
}
|
|
}
|
|
},
|
|
"implicitDependencies": ["graph-client"]
|
|
}
|