anchor.diff:  
   IF NOT DEFINED DEPLOYMENT_SOURCE (
     SET DEPLOYMENT_SOURCE=%~dp0%.
  +)
  +
  +IF NOT DEFINED DEPLOYMENT_TEMP (
  +  SET DEPLOYMENT_TEMP=%~dp0%..\temp
   )
   
   IF NOT DEFINED DEPLOYMENT_TARGET (
  
positive.code: IF !ERRORLEVEL! NEQ 0 goto error
  
  :: 2. Restore npm
  call :RestoreNpmPackages "%DEPLOYMENT_TARGET%"
  
  exit /b %ERRORLEVEL%
  
  
  :RestoreNpmPackages
  setlocal
  
  echo Restoring npm packages in %1
  
  IF EXIST "%1\package.json" (
    pushd "%1"
    call npm install --production
    IF !ERRORLEVEL! NEQ 0 goto error
    popd
  )
  
negative.code: 
  echo Handling function App deployment.
  
  call :DeployWithoutFuncPack
  
  goto end
  
  :DeployWithoutFuncPack
  setlocal
  
  echo Not using funcpack because SCM_USE_FUNCPACK is not set to 1
  
  :: 1. Copy to local storage
  echo Copying all files to local storage
  xcopy "%DEPLOYMENT_SOURCE%" "%DEPLOYMENT_TEMP%" /seyiq
  IF !ERRORLEVEL! NEQ 0 goto error
  
  :: 2. Restore npm for test
  call :RestoreNpmPackages "%DEPLOYMENT_TEMP%" "test"
  
  echo running unit tests
  pushd "%DEPLOYMENT_TEMP%"
  call node tests\test.run.all.js tests
  IF !ERRORLEVEL! NEQ 0 goto error
  popd
  
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%\functions" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
    IF !ERRORLEVEL! NEQ 0 goto error
  