public static IEnumerable <FilePath> NpmPack(this ICakeContext context, NpmPackSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); var packer = new NpmPacker(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); return(packer.Pack(settings)); }
protected override void RunTool() { var tool = new NpmPacker(FileSystem, Environment, ProcessRunner, Tools, Log); tool.Pack(Settings); }