Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Use dotless.core instead of DotlessClientOnly #342

Merged
merged 5 commits into from
Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Pretzel.Logic/Pretzel.Logic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ItemGroup>
<PackageReference Include="AjaxMin" Version="5.14.5506.26202" />
<PackageReference Include="CommonMark.NET" Version="0.15.1" />
<PackageReference Include="DotlessClientOnly" Version="1.5.2" />
<PackageReference Include="dotless.Core" Version="1.6.7" />
<PackageReference Include="DotLiquid" Version="2.0.314" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.12" />
<PackageReference Include="Microsoft.AspNet.Razor" Version="3.2.7" />
Expand Down
8 changes: 4 additions & 4 deletions src/Pretzel.Tests/Minification/LessTransformTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void Should_Compile_Single_Less_File()
color: @brand_color;
}";

var lessOutput = @"#header{color:#4d926f}h2{color:#4d926f}";
var lessOutput = @"#header{color:#4D926F}h2{color:#4D926F}";

var filepath = @"c:\css\style.less";
var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
Expand Down Expand Up @@ -81,7 +81,7 @@ public void Should_Compile_Less_To_Css_To_Output_Path()
color: @brand_color;
}";

var lessOutput = @"#header{color:#4d926f}h2{color:#4d926f}";
var lessOutput = @"#header{color:#4D926F}h2{color:#4D926F}";

var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
{
Expand Down Expand Up @@ -115,7 +115,7 @@ public void Should_Process_Less_Imports()
{ filepath2, new MockFileData(fileContent2) }
});

var expectedOutput = @"a{color:#4d926f}";
var expectedOutput = @"a{color:#4D926F}";

var minifier = new LessTransform(fileSystem);
var context = new SiteContext { SourceFolder = @"C:\", OutputFolder = @"C:\_site" };
Expand Down Expand Up @@ -156,7 +156,7 @@ public void Should_Process_Less_Imports_With_Cleanup()
});
fileSystem.AddDirectory(@"c:\css\emptysubfolder");

var expectedOutput = @"a{color:#4d926f;width:24px;height:24px;foo:bold}";
var expectedOutput = @"a{color:#4D926F;width:24px;height:24px;foo:bold}";

var minifier = new LessTransform(fileSystem);
var context = new SiteContext { SourceFolder = @"C:\", OutputFolder = @"C:\_site" };
Expand Down
3 changes: 1 addition & 2 deletions src/Pretzel.Tests/Pretzel.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProductVersion>8.0.30703</ProductVersion>
<TargetFramework>net462</TargetFramework>
Expand All @@ -15,7 +15,6 @@
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotlessClientOnly" Version="1.5.2" />
<PackageReference Include="DotLiquid" Version="2.0.314" />
<PackageReference Include="NDesk.Options" Version="0.2.1" />
<PackageReference Include="NSubstitute" Version="4.2.1" />
Expand Down