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