|
|
@ -76,11 +76,16 @@ Function Nunit()
|
|
|
|
|
|
|
|
|
|
|
|
Function RunGrunt()
|
|
|
|
Function RunGrunt()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$npmInstall = 'npm install'
|
|
|
|
$gruntPath = [environment]::getfolderpath("applicationdata") + '\npm\node_modules\grunt-cli\bin\grunt'
|
|
|
|
$gruntPackage = 'grunt package'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invoke-Expression $npmInstall
|
|
|
|
if(!(Test-Path $gruntPath))
|
|
|
|
Invoke-Expression $gruntPackage
|
|
|
|
{
|
|
|
|
|
|
|
|
Invoke-Expression 'npm install grunt-cli -g'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invoke-Expression 'npm install'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invoke-Expression ('node ' + $gruntPath + ' package')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Build
|
|
|
|
Build
|
|
|
|