anchor.diff:  SET ARTIFACTS=%~dp0%..\artifacts
   
   IF NOT DEFINED DEPLOYMENT_SOURCE (
  -  SET DEPLOYMENT_SOURCE=%~dp0%.
  +  SET DEPLOYMENT_SOURCE=%~dp0%\dist.
   )
   
   IF NOT DEFINED DEPLOYMENT_TARGET (
  
positive.code: :Deployment
  echo Handling node.js deployment.
  
  :: 1. KuduSync
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  
  :: 2. Select node version
  call :SelectNodeVersion
  
  :: 3. Install npm packages
  IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
    pushd "%DEPLOYMENT_TARGET%"
    call :ExecuteCmd !NPM_CMD! install --production
  
negative.code:   popd
  )
  
  :: 2. Run lint, test and compile
  call :ExecuteCmd !NPM_CMD! deploy:prod
  
  :: 3. KuduSync
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  goto end
  
  