Skip to content
This repository has been archived by the owner. It is now read-only.

Use dotless.core instead of DotlessClientOnly #342

Merged
merged 5 commits into from Sep 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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" />
@@ -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>
@@ -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>
{
@@ -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" };
@@ -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" };
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProductVersion>8.0.30703</ProductVersion>
<TargetFramework>net462</TargetFramework>
@@ -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" />