Skip to content

Commit

Permalink
use local grunt cli (intuit#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinder authored and abheekd committed Jun 14, 2019
1 parent 313307b commit af3b9d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ui/bin/jenkins-build-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ echo "++ Building: UI module - STARTED"

# ----------- Install dependencies first ---------------------------------------
echo "++ execute: (cd ./modules/ui && npm install && bower install && grunt build)"
(cd ./modules/ui && npm install && bower install && grunt build)
(cd ./modules/ui && npm install && bower install && ./node_modules/grunt-cli/bin/grunt build)

# ----------- Copy plugins ------------------------------------------------------
echo "++ Installing Plugins: ${CONTRIB_PLUGINS_TO_INSTALL}"
Expand Down Expand Up @@ -92,8 +92,8 @@ echo "++ Starting actual grunt build"
cp -R dist/plugins target/app; \
sed -i '' -e "s|VERSIONLOC|${version}|g" target/app/index.html 2>/dev/null; \

(cd target; grunt clean); \
(cd target; grunt build --target=develop --no-color) \
(cd target; ./node_modules/grunt-cli/bin/grunt clean); \
(cd target; ./node_modules/grunt-cli/bin/grunt build --target=develop --no-color) \
)

echo "++ Building: UI module - FINISHED"
Expand Down
1 change: 1 addition & 0 deletions modules/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"grunt": "~0.4.1",
"grunt-autoprefixer": "~0.4.0",
"grunt-bower-install": "~1.0.0",
"grunt-cli": "^1.3.2",
"grunt-concurrent": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-compass": "~0.7.2",
Expand Down

0 comments on commit af3b9d5

Please sign in to comment.