public static void AppBundle(this ICakeContext context, FilePath outputBundle, FilePath mappingFile, AppPackagerSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var resolver = new AppPackagerResolver(context.FileSystem, context.Environment, context.Tools, context.Registry); var bundler = new AppBundler(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver); bundler.Bundle(outputBundle, mappingFile, settings); }
protected override void RunTool() { var tool = new AppBundler(FileSystem, Environment, ProcessRunner, Tools, Resolver); tool.Bundle(OutputBundle, ContentDirectory, Settings); }