Skip to content

Commit

Permalink
fix: place .playwright directory under bin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev committed Nov 18, 2024
1 parent f35a47a commit 0c07b91
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/docfx/docfx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
<None Include="../../THIRD-PARTY-NOTICES.TXT" CopyToOutputDirectory="PreserveNewest" PackageCopyToOutput="true" />
</ItemGroup>

<!-- Custom target to merge large docfx dependencies to TargetFramework independent folder.
By default, these files are packed to `tools/$(TargetFramework)/any/*`.
This target rewrite:
- templates to the `/templates` directory.
- .playwright to the `/tools/.playwright` directory.
<!-- Custom target to merge docfx templates to TargetFramework independent folder.
By default, docfx templates is packed to `tools/$(TargetFramework)/any/templates/*`.
This target rewrite PackagePath and template files are placed at `templates/*` directory.
-->
<Target Name="RewriteDocfxTemplateFiles" AfterTargets="PackTool">
<PropertyGroup>
Expand All @@ -27,16 +25,11 @@
<TfmSpecificPackageFile Update="@(TfmSpecificPackageFile)"
Condition="$([System.String]::new('%(TfmSpecificPackageFile.PackagePath)').StartsWith('tools/$(TargetFramework)/any/templates/'))"
PackagePath="$([System.String]::new('%(TfmSpecificPackageFile.PackagePath)').Replace('tools/$(TargetFramework)/any/',''))"/>
<TfmSpecificPackageFile Update="@(TfmSpecificPackageFile)"
Condition="$([System.String]::new('%(TfmSpecificPackageFile.PackagePath)').StartsWith('tools/$(TargetFramework)/any/.playwright/'))"
PackagePath="$([System.String]::new('%(TfmSpecificPackageFile.PackagePath)').Replace('$(TargetFramework)/any/',''))"/>
</ItemGroup>
<!-- If TargetFramework is not selected version. Remove template files from package. -->
<ItemGroup Condition="'$(TargetFramework)' != '$(DocfxTemplateSourceTargetFramework)'">
<TfmSpecificPackageFile Remove="@(TfmSpecificPackageFile)"
Condition="$([System.String]::new('%(TfmSpecificPackageFile.PackagePath)').StartsWith('tools/$(TargetFramework)/any/templates/'))"/>
<TfmSpecificPackageFile Remove="@(TfmSpecificPackageFile)"
Condition="$([System.String]::new('%(TfmSpecificPackageFile.PackagePath)').StartsWith('tools/$(TargetFramework)/any/.playwright/'))"/>
</ItemGroup>
</Target>

Expand Down

0 comments on commit 0c07b91

Please sign in to comment.