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); })); }
public IDisposable TemporarySetPushTargetAndTokenLogin(string pushUri, string token) { return(TempFileTextModification.TemporaryInjectNPMToken(NPMRCPath, pushUri, PackageJson.Scope, (npmrc, u) => npmrc.Add(u + ":_authToken=" + token))); }
private protected IDisposable TemporaryPrePack(SVersion version, Action <JObject> packageJsonPreProcessor) { return(TempFileTextModification.TemporaryReplacePackageVersion(NpmSolution, OutputPath.AppendPart("package.json"), version, true, packageJsonPreProcessor)); }
private protected IDisposable TemporarySetVersion(SVersion version) { return(TempFileTextModification.TemporaryReplacePackageVersion(NpmSolution, PackageJson.JsonFilePath, version, false, null)); }
protected TempFileTextModification(TempFileTextModification toCopy) { _originalText = toCopy._originalText; _path = toCopy._path; }
private protected IDisposable TemporaryPrePack(SVersion version, Action <JObject> packageJsonPreProcessor, bool ckliLocalFeedMode) { return(TempFileTextModification.TemporaryReplaceDependenciesVersion(NpmSolution, OutputPath.AppendPart("package.json"), ckliLocalFeedMode, version, packageJsonPreProcessor)); }
private protected IDisposable TemporarySetPackageVersion(SVersion version, bool targetOutputPath = false) { return(TempFileTextModification.TemporaryReplacePackageVersion(!targetOutputPath ? PackageJson.JsonFilePath : OutputPath.AppendPart("package.json"), version)); }