Skip to content

Commit

Permalink
work around error under azpipeline vs2019 (#4616)
Browse files Browse the repository at this point in the history
  • Loading branch information
superyyrrzz committed May 23, 2019
1 parent 6e786d5 commit 7fae1ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions UpdateTemplate.ps1
Expand Up @@ -6,19 +6,22 @@ if (-not (Get-Command "node" -ErrorAction SilentlyContinue)) {
exit 1
}

# https://github.com/PowerShell/Phosphor/issues/26#issuecomment-299702987
$logLevelParam = if ($env:TF_BUILD -eq "True") { "--loglevel=error" } else { "" }

Push-Location $PSScriptRoot

$TemplateHome="$PSScriptRoot/src/docfx.website.themes/"
$DefaultTemplate="${TemplateHome}default/"
$GulpCommand="${DefaultTemplate}node_modules/gulp/bin/gulp"

Set-Location "$DefaultTemplate"
npm install
node ./node_modules/bower/bin/bower install
npm install $logLevelParam
node ./node_modules/bower/bin/bower install $logLevelParam
node "$GulpCommand"

Set-Location "$TemplateHome"
npm install
npm install $logLevelParam
node "$GulpCommand"

Pop-Location
1 change: 0 additions & 1 deletion build.ps1
Expand Up @@ -16,7 +16,6 @@ param(

$ErrorActionPreference = 'Stop'
$releaseBranch = "master"
$dotnetCommand = "dotnet"
$gitCommand = "git"
$framework = "net472"
$packageVersion = "1.0.0"
Expand Down

0 comments on commit 7fae1ef

Please sign in to comment.