Skip to content

Instantly share code, notes, and snippets.

@moinsam
Forked from cmawhorter/grunt-build.bat
Created April 19, 2016 13:30
Show Gist options
  • Save moinsam/320ce61bce138d2ab2b1d83c32ea16a7 to your computer and use it in GitHub Desktop.
Save moinsam/320ce61bce138d2ab2b1d83c32ea16a7 to your computer and use it in GitHub Desktop.
Script to build grunt/yeoman project from jenkins on windows 7
@echo off
REM You may need to add `cd %WORKSPACE%` in the jenkins project prior to
REM calling this script. I have it in mine and didn't test without.
REM Correct paths to respective applications as-needed
SET PATH=%PATH%;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Git\bin;%AppData%\npm;C:\Ruby200-x64\bin
echo Installing or updating bower...
cmd /c npm install -g bower
echo Installing or updating dependencies...
cmd /c npm install
echo Installing or updating grunt-cli...
cmd /c npm install -g grunt-cli
echo Installing or updating bower dependencies...
cmd /c bower install
echo Building...
grunt build --no-color
echo Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment