Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 2480d12

Browse files
committed
Build: MudBlazor.SassCompiiler package
1 parent c06041e commit 2480d12

File tree

12 files changed

+50
-44
lines changed

12 files changed

+50
-44
lines changed

.github/workflows/deploy-nuget.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: deploy-nuget
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy-nuget:
8+
name: Deploy mudblazor sasscompiler nuget to nuget.org
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
- name: Setup dotnet version
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: 9.0.x
17+
- name: Pack nuget package
18+
run: dotnet pack -c Release --output nupkgs
19+
working-directory: ./AspNetCore.SassCompiler
20+
- name: Publish nuget package
21+
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
22+
working-directory: ./AspNetCore.SassCompiler

.github/workflows/dotnetcore.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,3 @@ jobs:
4343
test -s Samples/AspNetCore.SassCompiler.RazorClassLibrary/obj/Release/net6.0/scopedcss/Component1.razor.rz.scp.css
4444
test -s Samples/AspNetCore.SassCompiler.Sample/wwwroot/css/site_sass.css
4545
test -s Samples/AspNetCore.SassCompiler.Sample/wwwroot/lib/css/lib.min.css
46-
47-
publish:
48-
runs-on: ubuntu-latest
49-
needs: [ build ]
50-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
51-
steps:
52-
- uses: actions/checkout@v4
53-
with:
54-
fetch-depth: 0
55-
- name: Setup .NET 6
56-
uses: actions/setup-dotnet@v4
57-
with:
58-
dotnet-version: 6.0.x
59-
- name: Setup .NET 8
60-
uses: actions/setup-dotnet@v4
61-
with:
62-
dotnet-version: 8.0.x
63-
- name: Publish NuGet
64-
id: publish_nuget
65-
uses: alirezanet/publish-nuget@v3.1.0
66-
with:
67-
PROJECT_FILE_PATH: AspNetCore.SassCompiler/AspNetCore.SassCompiler.csproj
68-
PACKAGE_NAME: AspNetCore.SassCompiler
69-
env:
70-
NUGET_KEY: ${{ secrets.NUGET_KEY }}
71-
- name: Create release
72-
id: create_release
73-
if: success() && steps.publish_nuget.outputs.version != ''
74-
run: gh release create ${{ steps.publish_nuget.outputs.version }} --generate-notes
75-
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,6 @@ paket-files/
264264
# Python Tools for Visual Studio (PTVS)
265265
__pycache__/
266266
*.pyc
267+
268+
# macOS system files
269+
.DS_Store

AspNetCore.SassCompiler.Tests/AspNetCore.SassCompiler.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<!-- Only needed because we're using a ProjectReference, this is done implicitly for PackageReference's -->
8-
<Import Project="..\AspNetCore.SassCompiler\build\AspNetCore.SassCompiler.props" />
8+
<Import Project="..\AspNetCore.SassCompiler\build\MudBlazor.SassCompiler.props" />
99

1010
<PropertyGroup>
1111
<TargetFramework>net6.0</TargetFramework>
@@ -38,6 +38,6 @@
3838
</ItemGroup>
3939

4040
<!-- Only needed because we're using a ProjectReference, this is done implicitly for PackageReference's -->
41-
<Import Project="..\AspNetCore.SassCompiler\build\AspNetCore.SassCompiler.targets" />
41+
<Import Project="..\AspNetCore.SassCompiler\build\MudBlazor.SassCompiler.targets" />
4242

4343
</Project>

AspNetCore.SassCompiler/AspNetCore.SassCompiler.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
5-
<PackageId>AspNetCore.SassCompiler</PackageId>
6-
<Version>1.83.4</Version>
5+
<PackageId>MudBlazor.SassCompiler</PackageId>
6+
<Version>2.0.5</Version>
77
<Authors>koenvzeijl,sleeuwen,Michaelvs97</Authors>
88
<Description>Sass Compiler Library for .NET 6 and above. without node</Description>
99
<PackageDescription>Sass Compiler Library for .NET 6 and above. without node, using dart-sass as a compiler</PackageDescription>
1010
<PackageTags>sass;scss;aspnetcore;dart-sass;compiler;watch;blazor;</PackageTags>
11-
<RepositoryUrl>https://github.com/koenvzeijl/AspNetCore.SassCompiler</RepositoryUrl>
11+
<RepositoryUrl>https://github.com/MudBlazor/AspNetCore.SassCompiler</RepositoryUrl>
1212
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1313
<Title>AspNetCore.SassCompiler</Title>
1414
<PackageIcon>logo.png</PackageIcon>
@@ -44,4 +44,10 @@
4444
<None Include="..\AspNetCore.SassCompiler.Tasks\bin\Release\netstandard2.0\AspNetCore.SassCompiler.Tasks.dll" Pack="true" PackagePath="lib\netstandard2.0" Visible="false" />
4545
</ItemGroup>
4646

47+
<!--Dont Include in build output-->
48+
<ItemGroup>
49+
<!--macOS hidden file (causes problems with dotnet pack)-->
50+
<Content Remove="**/*/.DS_Store" />
51+
</ItemGroup>
52+
4753
</Project>

AspNetCore.SassCompiler/build/AspNetCore.SassCompiler.props renamed to AspNetCore.SassCompiler/build/MudBlazor.SassCompiler.props

File renamed without changes.

AspNetCore.SassCompiler/build/AspNetCore.SassCompiler.targets renamed to AspNetCore.SassCompiler/build/MudBlazor.SassCompiler.targets

File renamed without changes.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Note
2+
This is a MudBlazor fork of the excellent [AspNetCore.SassCompiler](https://github.com/koenvzeijl/AspNetCore.SassCompiler) package.
3+
It specifically addresses our need for multi-target support.
4+
Our thanks to the original authors for all their hard work.
5+
Please contribute any PRs and Issues to the original package.
6+
17
# AspNetCore.SassCompiler
28
[![NuGet Version](https://img.shields.io/nuget/v/AspNetCore.SassCompiler.svg?style=flat)](https://www.nuget.org/packages/AspNetCore.SassCompiler/)
39

Samples/AspNetCore.SassCompiler.BlazorSample/AspNetCore.SassCompiler.BlazorSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<!-- Only needed because we're using a ProjectReference, this is done implicitly for PackageReference's -->
4-
<Import Project="..\..\AspNetCore.SassCompiler\build\AspNetCore.SassCompiler.props" />
4+
<Import Project="..\..\AspNetCore.SassCompiler\build\MudBlazor.SassCompiler.props" />
55

66
<PropertyGroup>
77
<TargetFramework>net8.0</TargetFramework>
@@ -16,6 +16,6 @@
1616
</ItemGroup>
1717

1818
<!-- Only needed because we're using a ProjectReference, this is done implicitly for PackageReference's -->
19-
<Import Project="..\..\AspNetCore.SassCompiler\build\AspNetCore.SassCompiler.targets" />
19+
<Import Project="..\..\AspNetCore.SassCompiler\build\MudBlazor.SassCompiler.targets" />
2020

2121
</Project>

Samples/AspNetCore.SassCompiler.BlazorWasmSample/AspNetCore.SassCompiler.BlazorWasmSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<!-- Only needed because we're using a ProjectReference, this is done implicitly for PackageReference's -->
4-
<Import Project="..\..\AspNetCore.SassCompiler\build\AspNetCore.SassCompiler.props" />
4+
<Import Project="..\..\AspNetCore.SassCompiler\build\MudBlazor.SassCompiler.props" />
55

66
<PropertyGroup>
77
<TargetFramework>net8.0</TargetFramework>
@@ -23,6 +23,6 @@
2323
</ItemGroup>
2424

2525
<!-- Only needed because we're using a ProjectReference, this is done implicitly for PackageReference's -->
26-
<Import Project="..\..\AspNetCore.SassCompiler\build\AspNetCore.SassCompiler.targets" />
26+
<Import Project="..\..\AspNetCore.SassCompiler\build\MudBlazor.SassCompiler.targets" />
2727

2828
</Project>

0 commit comments

Comments
 (0)