-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DotNetCoreCLI, restore auth, pack, nuget push
- Loading branch information
Peter Spillman
committed
Jun 13, 2017
1 parent
4bdbf05
commit e9c2c9a
Showing
48 changed files
with
2,336 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 2 additions & 31 deletions
33
Tasks/NuGetCommand/Common/utilities.ts → ...Common/nuget-task-common/CommandHelper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as tl from "vsts-task-lib/task"; | ||
import nuGetGetter = require("nuget-task-common/NuGetToolGetter"); | ||
|
||
export function getProjectFiles(projectPattern: string[]): string[] { | ||
var projectFiles = tl.findMatch(tl.getVariable("System.DefaultWorkingDirectory") || process.cwd(), projectPattern); | ||
if (!projectFiles || !projectFiles.length) { | ||
tl.warning(tl.loc("noProjectFilesFound")); | ||
return []; | ||
} | ||
|
||
return projectFiles; | ||
} | ||
|
||
export async function getNuGetPath(): Promise<string> { | ||
tl.debug('Getting NuGet'); | ||
return process.env[nuGetGetter.NUGET_EXE_TOOL_PATH_ENV_VAR] || await nuGetGetter.getNuGet("4.0.0"); | ||
} | ||
|
||
export function getUtcDateString(): string { | ||
let now: Date = new Date(); | ||
return `${now.getFullYear()}${now.getUTCMonth()}${now.getUTCDate()}-${now.getUTCHours()}${now.getUTCMinutes()}${now.getUTCSeconds()}`; | ||
} |
Oops, something went wrong.