|
5 | 5 | <Nullable>enable</Nullable> |
6 | 6 | <ImplicitUsings>enable</ImplicitUsings> |
7 | 7 | <PackageLicenseExpression>MIT</PackageLicenseExpression> |
| 8 | + <PackageReadmeFile>README.md</PackageReadmeFile> |
8 | 9 | <Version>9.0.0-preview.1</Version> |
9 | 10 | <Title>CodeBeam.MudBlazor.Extensions</Title> |
| 11 | + <PackageId>CodeBeam.MudBlazor.Extensions</PackageId> |
10 | 12 | <Authors>CodeBeam</Authors> |
11 | 13 | <Company>CodeBeam</Company> |
12 | 14 | <Description>MudBlazor extension components from contributors. Includes 30+ components and utilities.</Description> |
13 | 15 | <Copyright>CodeBeam OpenSource MIT</Copyright> |
14 | 16 | <PackageIcon>Mud_Secondary.png</PackageIcon> |
15 | 17 | <PackageProjectUrl>https://mudextensions.codebeam.org/</PackageProjectUrl> |
| 18 | + <RepositoryType>git</RepositoryType> |
16 | 19 | <RepositoryUrl>https://github.com/CodeBeamOrg/CodeBeam.MudBlazor.Extensions</RepositoryUrl> |
17 | 20 | <PackageTags>Blazor; MudBlazor; Component; Extension; Material3; Animate; Stepper; ComboBox; Select; List; Loading; Gallery; ChipField; Transfer; Barcode; QR; SpeedDial; RangeSlider; Teleport</PackageTags> |
18 | 21 | <RootNamespace>MudExtensions</RootNamespace> |
|
23 | 26 | <TrimMode>link</TrimMode> |
24 | 27 | <EnableTrimAnalyzer>true</EnableTrimAnalyzer> |
25 | 28 | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| 29 | + <SassCompilerEnableWatcher>false</SassCompilerEnableWatcher> |
26 | 30 | </PropertyGroup> |
27 | 31 |
|
28 | | - <!--Added for workaround https://github.com/dotnet/aspnetcore/issues/57147#issuecomment-2572752277--> |
29 | | - <!--<PropertyGroup> |
30 | | - <PrepareForBuildDependsOn>BundleMinify;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn> |
31 | | - </PropertyGroup>--> |
32 | | - |
33 | 32 | <ItemGroup> |
34 | 33 | <SupportedPlatform Include="browser" /> |
35 | 34 | </ItemGroup> |
36 | 35 |
|
37 | 36 | <ItemGroup> |
38 | | - <!--<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" />--> |
39 | 37 | <PackageReference Include="MudBlazor" Version="9.0.0-preview.1" /> |
| 38 | + <PackageReference Include="MudBlazor.SassCompiler" Version="2.0.7"> |
| 39 | + <PrivateAssets>all</PrivateAssets> |
| 40 | + </PackageReference> |
40 | 41 | </ItemGroup> |
41 | 42 |
|
42 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' "> |
43 | | - <PackageReference Include="Microsoft.AspNetCore.Components" Version="10.0.*" /> |
44 | | - <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.*" /> |
45 | | - </ItemGroup> |
46 | | - |
47 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' "> |
48 | | - <PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.*" /> |
49 | | - <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.*" /> |
50 | | - </ItemGroup> |
51 | | - |
52 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
53 | | - <PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.*" /> |
54 | | - <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.*" /> |
55 | | - </ItemGroup> |
56 | | - |
57 | | - <!--Uncomment it on development and debug to compile scss and generate min.css on rebuild |
58 | | - This sections causes to fail auto deployment to CloudFlare--> |
59 | | - <!--<Target Name="ToolRestore" BeforeTargets="PreBuildEvent"> |
60 | | - <Exec Command="dotnet tool restore" StandardOutputImportance="high" /> |
61 | | - </Target>--> |
| 43 | + <Target Name="CopyMudExtensionsCss" AfterTargets="Build"> |
| 44 | + <Copy SourceFiles="wwwroot/css/MudExtensions.min.css" DestinationFiles="wwwroot/MudExtensions.min.css" SkipUnchangedFiles="true" Condition="Exists('wwwroot/css/MudExtensions.min.css')" /> |
| 45 | + </Target> |
62 | 46 |
|
63 | | - <!--<Target Name="PreBuild" AfterTargets="ToolRestore"> |
64 | | - <Exec Command="dotnet tool run webcompiler -r Styles/MudExtensions.scss -c excubowebcompiler.json" StandardOutputImportance="high" /> |
65 | | - </Target>--> |
| 47 | + <Target Name="MinifyMudExtensionsJs" AfterTargets="Build" Condition="'$(TargetFramework)' == 'net10.0' AND Exists('TScripts/MudExtensions.js')"> |
| 48 | + <Message Importance="high" Text="Minifying MudExtensions.js → MudExtensions.min.js" /> |
| 49 | + <Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run --project CodeBeam.MudBlazor.Extensions.JsMinifier\CodeBeam.MudBlazor.Extensions.JsMinifier.csproj --configuration $(Configuration)" /> |
| 50 | + </Target> |
66 | 51 |
|
67 | 52 | <ItemGroup> |
68 | | - <Content Remove="bundleconfig.json" /> |
69 | | - <Content Remove="compilerconfig.json" /> |
70 | | - <Content Remove="excubowebcompiler.json" /> |
| 53 | + <Content Remove="sasscompiler.json" /> |
| 54 | + <Content Remove="wwwroot/css/**" /> |
71 | 55 | </ItemGroup> |
72 | 56 |
|
73 | | - <ItemGroup> |
74 | | - <_ContentIncludedByDefault Remove="bundleconfig.json" /> |
75 | | - </ItemGroup> |
76 | | - |
77 | 57 | <ItemGroup> |
78 | 58 | <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> |
79 | 59 | <_Parameter1>CodeBeam.MudBlazor.Extensions.UnitTests</_Parameter1> |
80 | 60 | </AssemblyAttribute> |
81 | 61 | </ItemGroup> |
82 | 62 |
|
83 | 63 | <ItemGroup> |
84 | | - <None Include="bundleconfig.json" /> |
85 | 64 | <None Include="Mud_Secondary.png"> |
86 | 65 | <Pack>True</Pack> |
87 | 66 | <PackagePath>\</PackagePath> |
|
0 commit comments