From 3001b3c905d74405982821d25d026e61926c810d Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Thu, 16 May 2013 13:49:16 -0700 Subject: [PATCH] updated grunt in powershell --- build.ps1 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build.ps1 b/build.ps1 index a770a0a94..177741e28 100644 --- a/build.ps1 +++ b/build.ps1 @@ -76,11 +76,16 @@ Function Nunit() Function RunGrunt() { - $npmInstall = 'npm install' - $gruntPackage = 'grunt package' + $gruntPath = [environment]::getfolderpath("applicationdata") + '\npm\node_modules\grunt-cli\bin\grunt' - Invoke-Expression $npmInstall - Invoke-Expression $gruntPackage + if(!(Test-Path $gruntPath)) + { + Invoke-Expression 'npm install grunt-cli -g' + } + + Invoke-Expression 'npm install' + + Invoke-Expression ('node ' + $gruntPath + ' package') } Build