Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 file types
Jump to鈥
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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" />
ProTip! Use n and p to navigate between commits in a pull request.
You can鈥檛 perform that action at this time.