Skip to content

Commit

Permalink
Reuse the Elm make cache more often
Browse files Browse the repository at this point in the history
Experiment with giving up isolation here to reduce compilation time: Make reusing the Elm make cache the default. As a result, the user will now have to clean up the `elm-make-home` cache when it ends up in a state that causes Elm make to fail.
  • Loading branch information
Viir committed Aug 22, 2020
1 parent 8ce434b commit 33dde92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace Kalmit.PersistentProcess.WebHost
{
public class Program
{
static public string AppVersionId => "2020-08-15";
static public string AppVersionId => "2020-08-22";
}
}
6 changes: 6 additions & 0 deletions implement/elm-fullstack/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public class Program
{
static int Main(string[] args)
{
Kalmit.ProcessFromElm019Code.overrideElmMakeHomeDirectory = ElmMakeHomeDirectoryPath;

var app = new CommandLineApplication
{
Name = "elm-fullstack",
Expand Down Expand Up @@ -496,6 +498,10 @@ int executeAndGuideInCaseOfException()
return executeAndGuideInCaseOfException();
}

static public string ElmMakeHomeDirectoryPath =>
System.IO.Path.Combine(
Kalmit.Filesystem.CacheDirectory, "elm-make-home");

static public void DotNetConsoleWriteLineUsingColor(string line, ConsoleColor color)
{
var colorBefore = Console.ForegroundColor;
Expand Down
4 changes: 2 additions & 2 deletions implement/elm-fullstack/elm-fullstack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>elm_fullstack</RootNamespace>
<AssemblyName>elm-fullstack</AssemblyName>
<AssemblyVersion>2020.0815.0.0</AssemblyVersion>
<FileVersion>2020.0815.0.0</FileVersion>
<AssemblyVersion>2020.0822.0.0</AssemblyVersion>
<FileVersion>2020.0822.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 33dde92

Please sign in to comment.