Skip to content

Commit e4e659e

Browse files
committed
Update Microsoft.AspNetCore.ClientAssets.targets
1 parent 9fe4987 commit e4e659e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Umbraco.Forms.Integrations.Crm.ActiveCampaign/build/Microsoft.AspNetCore.ClientAssets.targets

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<Project>
22
<!--
33
Copied from: https://github.com/aspnet/AspLabs/blob/main/src/ClientAssets/Microsoft.AspNetCore.ClientAssets/build/netstandard2.0/Microsoft.AspNetCore.ClientAssets.targets
4-
54
More information:
65
- https://devblogs.microsoft.com/dotnet/build-client-web-assets-for-your-razor-class-library/
76
- https://github.com/dotnet/aspnetcore/issues/38445
87
-->
98
<PropertyGroup>
10-
<ClientAssetsDirectory Condition="'$(ClientAssetsDirectory)' == ''">src\</ClientAssetsDirectory>
11-
<ClientAssetsRestoreInputs Condition="'$(ClientAssetsRestoreInputs)' == ''">package-lock.json;package.json</ClientAssetsRestoreInputs>
12-
<ClientAssetsRestoreOutputs Condition="'$(ClientAssetsRestoreOutputs)' == ''">node_modules\.package-lock.json</ClientAssetsRestoreOutputs>
9+
<ClientAssetsDirectory Condition="'$(ClientAssetsDirectory)' == ''">Client\</ClientAssetsDirectory>
10+
<ClientAssetsRestoreInputs Condition="'$(ClientAssetsRestoreInputs)' == ''">$(ClientAssetsDirectory)\package-lock.json;$(ClientAssetsDirectory)\package.json</ClientAssetsRestoreInputs>
11+
<ClientAssetsRestoreOutputs Condition="'$(ClientAssetsRestoreOutputs)' == ''">$(ClientAssetsDirectory)node_modules\.package-lock.json</ClientAssetsRestoreOutputs>
1312
<ClientAssetsRestoreCommand Condition="'$(ClientAssetsRestoreCommand)' == ''">npm ci --no-fund --no-audit --prefer-offline</ClientAssetsRestoreCommand>
1413
<ClientAssetsBuildCommand Condition="'$(ClientAssetsBuildCommand)' == ''">npm run build</ClientAssetsBuildCommand>
1514

@@ -27,8 +26,8 @@
2726

2827
<Target Name="ClientAssetsRestore" BeforeTargets="$(ClientAssetsRestoreBeforeTargets)" Inputs="$(ClientAssetsRestoreInputs)" Outputs="$(ClientAssetsRestoreOutputs)">
2928
<Message Text="Restoring NPM packages" Importance="high" />
30-
31-
</Target>
29+
<Exec Command="$(ClientAssetsRestoreCommand)" WorkingDirectory="$(ClientAssetsDirectory)"/>
30+
</Target>
3231

3332
<Target Name="ClientAssetsBuild" Condition="'$(ShouldRunClientAssetsBuild)' == 'true'" DependsOnTargets="ClientAssetsRestore" BeforeTargets="AssignTargetPaths" Inputs="@(ClientAssetsInputs)" Outputs="$(IntermediateOutputPath)clientassetsbuild.complete.txt">
3433
<PropertyGroup>
@@ -38,7 +37,7 @@
3837
<Message Text="Executing NPM build script" Importance="High" />
3938

4039
<MakeDir Directories="$(_ClientAssetsOutputFullPath)" />
41-
<Exec Command="$(ClientAssetsBuildCommand)" />
40+
<Exec Command="$(ClientAssetsBuildCommand)" WorkingDirectory="$(ClientAssetsDirectory)" />
4241

4342
<ItemGroup>
4443
<_ClientAssetsBuildOutput Include="$(IntermediateOutputPath)clientassets\**"></_ClientAssetsBuildOutput>

0 commit comments

Comments
 (0)