Example #1
0
 public IDisposable TemporarySetPushTargetAndPasswordLogin(string pushUri, string password)
 {
     return(TempFileTextModification.TemporaryInjectNPMToken(NPMRCPath, pushUri, PackageJson.Scope, (npmrc, u) =>
     {
         npmrc.Add(u + ":username=CodeCakeBuilder");
         npmrc.Add(u + ":_password=" + password);
     }));
 }
Example #2
0
 public IDisposable TemporarySetPushTargetAndTokenLogin(string pushUri, string token)
 {
     return(TempFileTextModification.TemporaryInjectNPMToken(NPMRCPath, pushUri, PackageJson.Scope, (npmrc, u) => npmrc.Add(u + ":_authToken=" + token)));
 }
Example #3
0
 private protected IDisposable TemporaryPrePack(SVersion version, Action <JObject> packageJsonPreProcessor)
 {
     return(TempFileTextModification.TemporaryReplacePackageVersion(NpmSolution, OutputPath.AppendPart("package.json"), version, true, packageJsonPreProcessor));
 }
Example #4
0
 private protected IDisposable TemporarySetVersion(SVersion version)
 {
     return(TempFileTextModification.TemporaryReplacePackageVersion(NpmSolution, PackageJson.JsonFilePath, version, false, null));
 }
Example #5
0
 protected TempFileTextModification(TempFileTextModification toCopy)
 {
     _originalText = toCopy._originalText;
     _path         = toCopy._path;
 }
Example #6
0
 private protected IDisposable TemporaryPrePack(SVersion version, Action <JObject> packageJsonPreProcessor, bool ckliLocalFeedMode)
 {
     return(TempFileTextModification.TemporaryReplaceDependenciesVersion(NpmSolution, OutputPath.AppendPart("package.json"), ckliLocalFeedMode, version, packageJsonPreProcessor));
 }
Example #7
0
 private protected IDisposable TemporarySetPackageVersion(SVersion version, bool targetOutputPath = false)
 {
     return(TempFileTextModification.TemporaryReplacePackageVersion(!targetOutputPath ? PackageJson.JsonFilePath : OutputPath.AppendPart("package.json"), version));
 }