use the full cmdlet name
This commit is contained in:
parent
b520e48a18
commit
a17ba217fb
|
|
@ -40,8 +40,8 @@ function choco {
|
||||||
Start-Choco $Args
|
Start-Choco $Args
|
||||||
}
|
}
|
||||||
|
|
||||||
cd c:/vagrant/provision/windows
|
Set-Location c:/vagrant/provision/windows
|
||||||
$script = Resolve-Path $script
|
$script = Resolve-Path $script
|
||||||
cd (Split-Path $script -Parent)
|
Set-Location (Split-Path $script -Parent)
|
||||||
Write-Host "Running $script..."
|
Write-Host "Running $script..."
|
||||||
. $script @scriptArguments
|
. $script @scriptArguments
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ SetDefaultBrowser HKLM "Google Chrome"
|
||||||
Write-Host 'Creating the graceful-terminating-console-application-windows chocolatey package...'
|
Write-Host 'Creating the graceful-terminating-console-application-windows chocolatey package...'
|
||||||
Push-Location $env:TEMP
|
Push-Location $env:TEMP
|
||||||
mkdir graceful-terminating-console-application-windows | Out-Null
|
mkdir graceful-terminating-console-application-windows | Out-Null
|
||||||
cd graceful-terminating-console-application-windows
|
Set-Location graceful-terminating-console-application-windows
|
||||||
Set-Content -Encoding Ascii graceful-terminating-console-application-windows.nuspec @'
|
Set-Content -Encoding Ascii graceful-terminating-console-application-windows.nuspec @'
|
||||||
<package>
|
<package>
|
||||||
<metadata>
|
<metadata>
|
||||||
|
|
@ -69,4 +69,4 @@ Pop-Location
|
||||||
Write-Host 'Installing the graceful-terminating-console-application-windows chocolatey package...'
|
Write-Host 'Installing the graceful-terminating-console-application-windows chocolatey package...'
|
||||||
choco install -y graceful-terminating-console-application-windows
|
choco install -y graceful-terminating-console-application-windows
|
||||||
Write-Host 'graceful-terminating-console-application-windows installed at:'
|
Write-Host 'graceful-terminating-console-application-windows installed at:'
|
||||||
dir C:\ProgramData\chocolatey\bin\graceful-terminating-console-application-windows.exe
|
Get-ChildItem C:\ProgramData\chocolatey\bin\graceful-terminating-console-application-windows.exe
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,10 @@ function external([string]$cmd, [string[]]$arguments) {
|
||||||
function node { external node.exe $Args }
|
function node { external node.exe $Args }
|
||||||
function npm { external npm.cmd $Args }
|
function npm { external npm.cmd $Args }
|
||||||
|
|
||||||
cd $env:USERPROFILE
|
Set-Location $env:USERPROFILE
|
||||||
mkdir tmp | Out-Null
|
mkdir tmp | Out-Null
|
||||||
mkdir tmp/use-npm-repository | Out-Null
|
mkdir tmp/use-npm-repository | Out-Null
|
||||||
cd tmp/use-npm-repository
|
Set-Location tmp/use-npm-repository
|
||||||
|
|
||||||
#
|
#
|
||||||
# test the npm repositories.
|
# test the npm repositories.
|
||||||
|
|
@ -47,7 +47,7 @@ npm config set registry https://$nexusDomain/repository/npm-group/
|
||||||
|
|
||||||
# install a package that indirectly uses the npmjs.org-proxy repository.
|
# install a package that indirectly uses the npmjs.org-proxy repository.
|
||||||
mkdir hello-world-win-npm | Out-Null
|
mkdir hello-world-win-npm | Out-Null
|
||||||
pushd hello-world-win-npm
|
Push-Location hello-world-win-npm
|
||||||
Set-Content `
|
Set-Content `
|
||||||
-Encoding Ascii `
|
-Encoding Ascii `
|
||||||
package.json `
|
package.json `
|
||||||
|
|
@ -93,11 +93,11 @@ npm set "//$nexusDomain/repository/npm-hosted/:_authToken" $npmAuthToken
|
||||||
# NB instead of using the token from the npm configuration you can
|
# NB instead of using the token from the npm configuration you can
|
||||||
# set the NPM_TOKEN environment variable.
|
# set the NPM_TOKEN environment variable.
|
||||||
npm publish --registry=$env:NPM_REGISTRY
|
npm publish --registry=$env:NPM_REGISTRY
|
||||||
popd
|
Pop-Location
|
||||||
|
|
||||||
# use the published package.
|
# use the published package.
|
||||||
mkdir use-hello-world-win-npm | Out-Null
|
mkdir use-hello-world-win-npm | Out-Null
|
||||||
pushd use-hello-world-win-npm
|
Push-Location use-hello-world-win-npm
|
||||||
Set-Content `
|
Set-Content `
|
||||||
-Encoding Ascii `
|
-Encoding Ascii `
|
||||||
hello-world-win.js `
|
hello-world-win.js `
|
||||||
|
|
@ -116,4 +116,4 @@ Set-Content `
|
||||||
'@
|
'@
|
||||||
npm install hello-world-win
|
npm install hello-world-win
|
||||||
node node_modules/hello-world-win/hello-world-win.js
|
node node_modules/hello-world-win/hello-world-win.js
|
||||||
popd
|
Pop-Location
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ New-Item `
|
||||||
| Out-Null
|
| Out-Null
|
||||||
|
|
||||||
Write-Host 'Publishing the ExampleGreeter module into the nexus server...'
|
Write-Host 'Publishing the ExampleGreeter module into the nexus server...'
|
||||||
cd $env:TEMP
|
Set-Location $env:TEMP
|
||||||
mkdir ExampleGreeter | Out-Null
|
mkdir ExampleGreeter | Out-Null
|
||||||
Push-Location ExampleGreeter
|
Push-Location ExampleGreeter
|
||||||
Set-Content `
|
Set-Content `
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue