40 lines
1.4 KiB
XML
40 lines
1.4 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="src/Prelude.fs" />
|
|
<Compile Include="src/UI/LocalStorage.fs" />
|
|
<Compile Include="src/UI/Components.fs" />
|
|
<Compile Include="src/UI/Animate.fs" />
|
|
<Compile Include="src/Exercises/RequestAnimationFrame.fs" />
|
|
<Compile Include="src/Exercises/LocalStorageSync.fs" />
|
|
<Compile Include="src/Client.fs" />
|
|
<Compile Include="src/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>
|