Skip to content

Commit

Permalink
Add micro Hero Icons (#51)
Browse files Browse the repository at this point in the history
* fix hero icon generator

* generate micro icons and execute icon generation in parallel
  • Loading branch information
DavidVollmers authored Mar 26, 2024
1 parent 34b5a4b commit faf98e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconGenerator(HttpClient httpClient)
{
_httpClient = httpClient;

_httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("*/*"));
_httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
}

public async Task GenerateAsync(string repositoryPath, string outputPath)
Expand Down
9 changes: 6 additions & 3 deletions tools/Ignis.Components.HeroIcons.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
var outputPath = Path.Combine(assemblyLocation, "..", "..", "..", "..", "..", "packages", "Tailwind",
"Ignis.Components.HeroIcons");

await generator.GenerateAsync("optimized/24/solid", Path.Combine(outputPath, "Solid"));
await generator.GenerateAsync("optimized/24/outline", Path.Combine(outputPath, "Outline"));
await generator.GenerateAsync("optimized/20/solid", Path.Combine(outputPath, "Mini"));
await Task.WhenAll([
generator.GenerateAsync("optimized/24/outline", Path.Combine(outputPath, "Outline")),
generator.GenerateAsync("optimized/24/solid", Path.Combine(outputPath, "Solid")),
generator.GenerateAsync("optimized/20/solid", Path.Combine(outputPath, "Mini")),
generator.GenerateAsync("optimized/16/solid", Path.Combine(outputPath, "Micro"))
]);

0 comments on commit faf98e0

Please sign in to comment.