Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MJRasicci committed Aug 25, 2023
1 parent 31b58ae commit cc98231
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Source/Tailwind.MSBuild/Utilities/TailwindDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,29 +77,29 @@ public TailwindDownloader()
/// <summary>
/// A small response model for the GitHub Releases API.
/// </summary>
internal record TailwindRelease
internal struct TailwindRelease
{
/// <summary>
/// A collection of pre-built binaries for this release.
/// </summary>
[JsonPropertyName("assets")]
public IEnumerable<TailwindAsset> Assets { get; set; } = Array.Empty<TailwindAsset>();
public IEnumerable<TailwindAsset> Assets { get; set; }
}

/// <summary>
/// A small model containing the download information for a release asset.
/// </summary>
internal record TailwindAsset
internal struct TailwindAsset
{
/// <summary>
/// The address to download the asset's binary content.
/// </summary>
[JsonPropertyName("browser_download_url")]
public string DownloadUrl { get; set; } = string.Empty;
public string DownloadUrl { get; set; }

/// <summary>
/// The name of the download.
/// </summary>
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
public string Name { get; set; }
}
3 changes: 3 additions & 0 deletions Tests/SampleApp/Pages/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@page
@{
Layout = "_Layout";
}

<div class="text-center">
<h1>Welcome</h1>
Expand Down
3 changes: 0 additions & 3 deletions Tests/SampleApp/Pages/_ViewStart.cshtml

This file was deleted.

11 changes: 7 additions & 4 deletions Tests/SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<!-- Ensure that Tailwind.MSBuild is built first, but don't include its output. -->
<ItemGroup>
<ProjectReference Include="..\..\Source\Tailwind.MSBuild\Tailwind.MSBuild.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>

<PropertyGroup>
<TailwindMSBuildAssembly>$(MSBuildThisFileDirectory)..\..\Source\Tailwind.MSBuild\bin\Debug\netstandard2.0\Tailwind.MSBuild.dll</TailwindMSBuildAssembly>
<TailwindInstallPath>$(BaseIntermediateOutputPath)tailwind-cli\</TailwindInstallPath>
</PropertyGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

<Import Project="..\..\Source\Tailwind.MSBuild\build\Tailwind.MSBuild.props" />
<Import Project="..\..\Source\Tailwind.MSBuild\build\Tailwind.MSBuild.targets" />
Expand Down

0 comments on commit cc98231

Please sign in to comment.