Skip to content

Commit

Permalink
feat: add BootstrapperFactoryExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkurSheel committed Nov 24, 2021
1 parent 85241f0 commit a42124f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/StatiqHelpers/Extensions/BootstrapperFactoryExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Statiq.App;
using Statiq.Web;
using StatiqHelpers.ImageHelpers;

namespace StatiqHelpers.Extensions
{
public static class BootstrapperFactoryExtensions
{
public static Bootstrapper InitStatiq(this BootstrapperFactory factory, string[] args)
=> factory.CreateWeb(args).RemovePipelines().AddCommand<ResizeImage>().AddPipelines().AddServices();
}
}

0 comments on commit a42124f

Please sign in to comment.