Created
June 2, 2015 20:00
An extract of a customised deploy.cmd for running Gulp tasks during Azure deploys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Deployment | |
:: ---------- | |
:: << Other steps from your file omitted here >> | |
:: 3. Install npm packages (remove the --production switch!) | |
IF EXIST "%DEPLOYMENT_TARGET%\package.json" ( | |
pushd "%DEPLOYMENT_TARGET%" | |
call :ExecuteCmd !NPM_CMD! install | |
IF !ERRORLEVEL! NEQ 0 goto error | |
popd | |
) | |
:: 4. Install bower packages | |
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" ( | |
pushd "%DEPLOYMENT_TARGET%" | |
call :ExecuteCmd .\node_modules\.bin\bower install | |
IF !ERRORLEVEL! NEQ 0 goto error | |
popd | |
) | |
:: 5. Run gulp transformations | |
IF EXIST "%DEPLOYMENT_TARGET%\gulpfile.js" ( | |
pushd "%DEPLOYMENT_TARGET%" | |
call :ExecuteCmd .\node_modules\.bin\gulp | |
IF !ERRORLEVEL! NEQ 0 goto error | |
popd | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment