-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
25 lines (24 loc) · 976 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Threading.Tasks;
using Statiq.App;
using Statiq.Web;
using Statiq.Common;
using Statiq.Markdown;
using Statiq.Core;
namespace HollowInsideMaintenance
{
public class Program
{
public static async Task<int> Main(string[] args) =>
await Bootstrapper
.Factory
.CreateWeb(args)
.AddSetting(Keys.Host, "hollowinsideofficial.com")
.AddSetting(Keys.LinksUseHttps, true)
.ConfigureEngine(engine => engine.Pipelines.Remove(nameof(Statiq.Web.Pipelines.Assets)))
.ConfigureEngine(engine => engine.Pipelines.Add(nameof(Statiq.Web.Pipelines.Assets), new Pipeline()))
.AddSetting(WebKeys.ExcludedPaths, new List<NormalizedPath>{new NormalizedPath("assets")})
.AddProcess(ProcessTiming.Initialization, _ => new ProcessLauncher("yarn", "install", "--immutable"))
.AddProcess(ProcessTiming.BeforeExecution, _ => new ProcessLauncher("gulp"))
.RunAsync();
}
}