* Added DisableBuildCompression to not make compressed versions of backoffice client. That should dotnet not spend time on when building * Also add to our own execuable even that we do not ship it * Also add to our own execuable even that we do not ship it * Use <CompressionEnabled>false</CompressionEnabled> instead * Revert "Also add to our own execuable even that we do not ship it" This reverts commit 183200d24b6d381fee0dc35894db72abb037e634.
81 lines
5.2 KiB
XML
81 lines
5.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
|
<PropertyGroup>
|
|
<Title>Umbraco CMS - Static assets</Title>
|
|
<Description>Contains the static assets needed to run Umbraco CMS.</Description>
|
|
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
|
|
<StaticWebAssetBasePath>/</StaticWebAssetBasePath>
|
|
<CompressionEnabled>false</CompressionEnabled> <!-- Disable compression. E.g. for umbraco backoffice files. These files should be precompressed by node and not let dotnet handle it -->
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- TODO: [NU5123] Rename files so path is shorter -->
|
|
<WarningsNotAsErrors>NU5123</WarningsNotAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
|
<ProjectReference Include="..\Umbraco.Cms.Api.Management\Umbraco.Cms.Api.Management.csproj" />
|
|
<ProjectReference Include="..\Umbraco.Web.Website\Umbraco.Web.Website.csproj" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<BasePath>$(ProjectDir)wwwroot\umbraco</BasePath>
|
|
<BellissimaPath>$(BasePath)\backoffice</BellissimaPath>
|
|
<LoginPath>$(BasePath)\login</LoginPath>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="BuildStaticAssetsPreconditions" BeforeTargets="Build">
|
|
<Message Text="Skip BuildBellissima target because UmbracoBuild is '$(UmbracoBuild)' (this is not Visual Studio)" Importance="high" Condition="'$(UmbracoBuild)' != ''" />
|
|
<Message Text="Skip BuildBellissima target because '$(BellissimaPath)' already exists" Importance="high" Condition="Exists('$(BellissimaPath)')" />
|
|
<Message Text="Call BuildBellissima target because UmbracoBuild is empty (this is Visual Studio) and '$(BellissimaPath)' doesn't exist" Importance="high" Condition="'$(UmbracoBuild)' == '' and !Exists('$(BellissimaPath)')" />
|
|
<CallTarget Targets="BuildBellissima" Condition="'$(UmbracoBuild)' == '' and !Exists('$(BellissimaPath)')" />
|
|
|
|
<Message Text="Skip BuildLogin target because UmbracoBuild is '$(UmbracoBuild)' (this is not Visual Studio)" Importance="high" Condition="'$(UmbracoBuild)' != ''" />
|
|
<Message Text="Skip BuildLogin target because '$(LoginPath)' already exists" Importance="high" Condition="Exists('$(LoginPath)')" />
|
|
<Message Text="Call BuildLogin target because UmbracoBuild is empty (this is Visual Studio) and '$(LoginPath)' doesn't exist" Importance="high" Condition="'$(UmbracoBuild)' == '' and !Exists('$(LoginPath)')" />
|
|
<CallTarget Targets="BuildLogin" Condition="'$(UmbracoBuild)' == '' and !Exists('$(LoginPath)')" />
|
|
</Target>
|
|
|
|
<Target Name="BuildBellissima">
|
|
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\" Command="npm ci --no-fund --no-audit --prefer-offline" />
|
|
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\" Command="npm run build:for:cms" />
|
|
</Target>
|
|
|
|
<Target Name="BuildBelle">
|
|
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\" Command="npm ci --no-fund --no-audit --prefer-offline" Timeout="600000" />
|
|
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\" Command="npm run build:skip-tests" Timeout="600000" />
|
|
</Target>
|
|
|
|
<Target Name="BuildLogin">
|
|
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Login\" Command="npm ci --no-fund --no-audit --prefer-offline" Timeout="600000" />
|
|
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Login\" Command="npm run build" Timeout="600000" />
|
|
</Target>
|
|
|
|
<Target Name="CleanStaticAssetsPreconditions" AfterTargets="Clean" Condition="'$(UmbracoBuild)' == ''">
|
|
|
|
<Message Text="Skip CleanBellissima target because '$(BellissimaPath)' doesn't exist" Importance="high" Condition="!Exists('$(BellissimaPath)')" />
|
|
<Message Text="Skip CleanBellissima target because preserve.bellissima marker file exists" Importance="high" Condition="Exists('$(BellissimaPath)') and Exists('$(SolutionDir)preserve.bellissima')" />
|
|
<Message Text="Call CleanBellissima target because '$(BellissimaPath)' exists and preserve.bellissima marker file doesn't exist" Importance="high" Condition="Exists('$(BellissimaPath)') and !Exists('$(SolutionDir)preserve.bellissima')" />
|
|
<CallTarget Targets="CleanBellissima" Condition="Exists('$(BellissimaPath)') and !Exists('$(SolutionDir)preserve.bellissima')" />
|
|
|
|
<Message Text="Skip CleanLogin target because '$(LoginPath)' doesn't exist" Importance="high" Condition="!Exists('$(LoginPath)')" />
|
|
<Message Text="Skip CleanLogin target because preserve.login marker file exists" Importance="high" Condition="Exists('$(LoginPath)') and Exists('$(SolutionDir)preserve.login')" />
|
|
<Message Text="Call CleanLogin target because '$(LoginPath)' exists and preserve.login marker file doesn't exist" Importance="high" Condition="Exists('$(LoginPath)') and !Exists('$(SolutionDir)preserve.login')" />
|
|
<CallTarget Targets="CleanLogin" Condition="Exists('$(LoginPath)') and !Exists('$(SolutionDir)preserve.login')" />
|
|
</Target>
|
|
|
|
<Target Name="CleanBellissima">
|
|
<ItemGroup>
|
|
<BellissimaDirectories Include="$(BellissimaPath);" />
|
|
</ItemGroup>
|
|
<RemoveDir Directories="@(BellissimaDirectories)" />
|
|
</Target>
|
|
|
|
<Target Name="CleanLogin">
|
|
<ItemGroup>
|
|
<LoginDirectories Include="$(LoginPath);" />
|
|
</ItemGroup>
|
|
<RemoveDir Directories="@(LoginDirectories)" />
|
|
</Target>
|
|
</Project>
|