feat(graph): add parallelism in target details (#27014)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today -->   ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
This commit is contained in:
parent
627504d8d3
commit
bfb0106e13
@ -330,9 +330,31 @@ export default function TargetConfigurationDetails({
|
||||
/>
|
||||
</FadingCollapsible>
|
||||
</>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
) : null}
|
||||
|
||||
{targetConfiguration.parallelism === false ? (
|
||||
<div className="group mb-4">
|
||||
<h4 className="mb-4">
|
||||
<Tooltip
|
||||
openAction="hover"
|
||||
content={(<PropertyInfoTooltip type="parallelism" />) as any}
|
||||
>
|
||||
<span className="font-medium">
|
||||
<TooltipTriggerText>Parallelism</TooltipTriggerText>
|
||||
</span>
|
||||
</Tooltip>
|
||||
</h4>
|
||||
<div className="group/line overflow-hidden whitespace-nowrap pl-5">
|
||||
<TargetConfigurationProperty data={{ paralelism: false }}>
|
||||
<TargetSourceInfo
|
||||
className="min-w-0 flex-1 pl-4 opacity-0 transition-opacity duration-150 ease-in-out group-hover/line:opacity-100"
|
||||
propertyKey={`targets.${targetName}.parallelism`}
|
||||
sourceMap={sourceMap}
|
||||
/>
|
||||
</TargetConfigurationProperty>
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@ -10,7 +10,8 @@ type PropertyInfoTooltipType =
|
||||
| 'dependsOn'
|
||||
| 'options'
|
||||
| 'configurations'
|
||||
| 'release';
|
||||
| 'release'
|
||||
| 'parallelism';
|
||||
|
||||
type PropertyInfoTooltipTypeOptions = {
|
||||
docsUrl?: string;
|
||||
@ -81,6 +82,12 @@ const PROPERTY_INFO_TOOLTIP_TYPE_OPTIONS: Record<
|
||||
"The nx-release-publish target is used to publish your project with nxrelease. Don't invoke this directly - use nx release publish instead.",
|
||||
docsUrl: 'https://nx.dev/nx-api/nx/documents/release',
|
||||
},
|
||||
parallelism: {
|
||||
heading: 'Parallelism',
|
||||
description:
|
||||
'By default, tasks are run in parallel with other tasks. Setting `"parallelism": false` ensures that the target will not run in parallel with other tasks on the same machine.',
|
||||
docsUrl: 'https://nx.dev/reference/project-configuration#parallelism',
|
||||
},
|
||||
};
|
||||
|
||||
export function PropertyInfoTooltip({ type }: PropertyInfoTooltipProps) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user