public static void NpmPrune(this ICakeContext context, NpmPruneSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            AddinInformation.LogVersionInformation(context.Log);

            var pruner = new NpmPruneRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log);

            pruner.Prune(settings);
        }
예제 #2
0
        protected override void RunTool()
        {
            var tool = new NpmPruneRunner(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.Prune(Settings);
        }