04b9eeb9b6
ci / backend (push) Failing after 1s
ci / static (push) Failing after 12s
Build & Test with Secrets / build (push) Failing after 1s
Build & Test with Secrets / security-scan (push) Has been cancelled
Build & Test with Secrets / notification (push) Has been cancelled
Build & Test with Secrets / frontend (push) Has been cancelled
ci / publish (push) Has been cancelled
ci / frontend (push) Has been cancelled
deploy / deploy (push) Successful in 1m44s
deploy / notify (push) Successful in 1s
The BuildFrontend target now only runs when CI != true and package.json exists. This allows CI to skip pnpm install/build when it's not available. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
38 lines
2.0 KiB
XML
38 lines
2.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
<PropertyGroup>
|
|
<UserSecretsId>bab7e095-067e-4797-b2ab-df4c1f8b447d</UserSecretsId>
|
|
</PropertyGroup>
|
|
|
|
<!-- Frontend Build Target: Automatically build Vite and copy to wwwroot (dev only) -->
|
|
<Target Name="BuildFrontend" BeforeTargets="Build" Condition="'$(CI)' != 'true' AND Exists('$(ProjectDir)../../frontend/package.json')">
|
|
<Exec Command="pnpm install --frozen-lockfile" WorkingDirectory="$(ProjectDir)../../frontend" ContinueOnError="false" />
|
|
<Exec Command="pnpm build" WorkingDirectory="$(ProjectDir)../../frontend" ContinueOnError="false" />
|
|
<Copy SourceFiles="@(FrontendFiles)" DestinationFolder="$(ProjectDir)wwwroot/%(RecursiveDir)" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<FrontendFiles Include="../../frontend/dist/**/*" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="../KArtSell.BuildingBlocks/KArtSell.BuildingBlocks.csproj" />
|
|
<ProjectReference Include="../KArtSell.Modules.SignalEngine/KArtSell.Modules.SignalEngine.csproj" />
|
|
<ProjectReference Include="../KArtSell.Modules.ModelOperations/KArtSell.Modules.ModelOperations.csproj" />
|
|
<PackageReference Include="FastEndpoints" />
|
|
<PackageReference Include="Hangfire.AspNetCore" />
|
|
<PackageReference Include="Hangfire.PostgreSql" />
|
|
<PackageReference Include="Newtonsoft.Json" VersionOverride="13.0.3" />
|
|
<PackageReference Include="Npgsql" />
|
|
<PackageReference Include="Polly" />
|
|
<PackageReference Include="Serilog.AspNetCore" />
|
|
<PackageReference Include="Serilog.Settings.Configuration" />
|
|
<PackageReference Include="Serilog.Sinks.Console" />
|
|
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
|
|
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
|
|
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
|
|
<PackageReference Include="OpenTelemetry.Instrumentation.Http" />
|
|
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore" />
|
|
</ItemGroup>
|
|
</Project>
|