Example #1
0
 public static NpmInstallSettings ToggleNoBinLinks(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.NoBinLinks = !toolSettings.NoBinLinks;
     return(toolSettings);
 }
Example #2
0
 public static NpmInstallSettings ToggleForce(this NpmInstallSettings toolSettings)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Force = !toolSettings.Force;
     return(toolSettings);
 }
Example #3
0
 public static NpmInstallSettings ResetGlobal(this NpmInstallSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Global = null;
     return(toolSettings);
 }
Example #4
0
 public static NpmInstallSettings SetForce(this NpmInstallSettings toolSettings, bool?force)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Force = force;
     return(toolSettings);
 }
Example #5
0
 public static NpmInstallSettings ResetForce(this NpmInstallSettings toolSettings)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Force = null;
     return(toolSettings);
 }
Example #6
0
 public static NpmInstallSettings SetProduction(this NpmInstallSettings toolSettings, bool?production)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.Production = production;
     return(toolSettings);
 }
Example #7
0
 public static NpmInstallSettings DisableProduction(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.Production = false;
     return(toolSettings);
 }
Example #8
0
 public static NpmInstallSettings DisableNoShrinkWrap(this NpmInstallSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NoShrinkWrap = false;
     return(toolSettings);
 }
Example #9
0
 public static NpmInstallSettings ToggleNoShrinkWrap(this NpmInstallSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NoShrinkWrap = !toolSettings.NoShrinkWrap;
     return(toolSettings);
 }
Example #10
0
 public static NpmInstallSettings SetNoShrinkWrap(this NpmInstallSettings toolSettings, bool?noShrinkWrap)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NoShrinkWrap = noShrinkWrap;
     return(toolSettings);
 }
Example #11
0
 public static NpmInstallSettings ResetNoShrinkWrap(this NpmInstallSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NoShrinkWrap = null;
     return(toolSettings);
 }
Example #12
0
 public static NpmInstallSettings ToggleNoOptional(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.NoOptional = !toolSettings.NoOptional;
     return(toolSettings);
 }
Example #13
0
 public static NpmInstallSettings EnableNoOptional(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.NoOptional = true;
     return(toolSettings);
 }
Example #14
0
 public static NpmInstallSettings SetNoOptional(this NpmInstallSettings toolSettings, bool?noOptional)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.NoOptional = noOptional;
     return(toolSettings);
 }
Example #15
0
 public static NpmInstallSettings AddPackages(this NpmInstallSettings toolSettings, IEnumerable <string> packages)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PackagesInternal.AddRange(packages);
     return(toolSettings);
 }
Example #16
0
 public static NpmInstallSettings SetNodeDir(this NpmInstallSettings toolSettings, string nodeDir)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.NodeDir = nodeDir;
     return(toolSettings);
 }
Example #17
0
 public static NpmInstallSettings ClearPackages(this NpmInstallSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PackagesInternal.Clear();
     return(toolSettings);
 }
Example #18
0
 public static NpmInstallSettings ResetNodeDir(this NpmInstallSettings toolSettings)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.NodeDir = null;
     return(toolSettings);
 }
Example #19
0
 public static NpmInstallSettings ResetProduction(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.Production = null;
     return(toolSettings);
 }
Example #20
0
 public static NpmInstallSettings SetOnly(this NpmInstallSettings toolSettings, NpmOnlyMode only)
 {
     toolSettings      = toolSettings.NewInstance();
     toolSettings.Only = only;
     return(toolSettings);
 }
Example #21
0
 public static NpmInstallSettings ToggleProduction(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.Production = !toolSettings.Production;
     return(toolSettings);
 }
Example #22
0
 public static NpmInstallSettings ResetOnly(this NpmInstallSettings toolSettings)
 {
     toolSettings      = toolSettings.NewInstance();
     toolSettings.Only = null;
     return(toolSettings);
 }
Example #23
0
 static partial void PostProcess(NpmInstallSettings toolSettings);
Example #24
0
 public static NpmInstallSettings SetPackages(this NpmInstallSettings toolSettings, params string[] packages)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PackagesInternal = packages.ToList();
     return(toolSettings);
 }
Example #25
0
 public static NpmInstallSettings DisableForce(this NpmInstallSettings toolSettings)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Force = false;
     return(toolSettings);
 }
Example #26
0
 public static NpmInstallSettings SetPackages(this NpmInstallSettings toolSettings, IEnumerable <string> packages)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PackagesInternal = packages.ToList();
     return(toolSettings);
 }
Example #27
0
 public static NpmInstallSettings SetGlobal(this NpmInstallSettings toolSettings, bool?global)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Global = global;
     return(toolSettings);
 }
Example #28
0
 public static NpmInstallSettings AddPackages(this NpmInstallSettings toolSettings, params string[] packages)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PackagesInternal.AddRange(packages);
     return(toolSettings);
 }
Example #29
0
 public static NpmInstallSettings DisableGlobal(this NpmInstallSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Global = false;
     return(toolSettings);
 }
Example #30
0
 public static NpmInstallSettings DisableNoBinLinks(this NpmInstallSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.NoBinLinks = false;
     return(toolSettings);
 }