web-apis-websharper/web_api_cookbook.fsproj
2025-07-28 01:05:33 -07:00

40 lines
1.3 KiB
XML

<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<WebSharperSourceMap>True</WebSharperSourceMap>
</PropertyGroup>
<ItemGroup>
<Compile Include="Prelude.fs" />
<Compile Include="UI/LocalStorage.fs" />
<Compile Include="UI/Components.fs" />
<Compile Include="UI/Animate.fs" />
<Compile Include="Exercises/RequestAnimationFrame.fs" />
<Compile Include="Exercises/LocalStorageSync.fs" />
<Compile Include="Client.fs" />
<Compile Include="Startup.fs" />
<None Include="package.json" />
<None Include="esbuild.config.mjs" />
<None Include="vite.config.js" />
<None Include="wsconfig.json" />
</ItemGroup>
<!-- Central package management enabled, https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management -->
<ItemGroup>
<PackageReference Include="WebSharper"/>
<PackageReference Include="WebSharper.FSharp"/>
<PackageReference Include="WebSharper.UI"/>
<PackageReference Include="WebSharper.AspNetCore"/>
</ItemGroup>
<Target Name="ESBuildBundle" AfterTargets="WebSharperCompile" Condition=" '$(Configuration)' == 'Release' ">
<Exec Command="npm install" />
<Exec Command="node ./esbuild.config.mjs" />
</Target>
</Project>