Skip to content

Commit 0bfc616

Browse files
petebacondarwinnetman92
authored andcommitted
chore(bower/publish): run local precommit script if available
Closes angular#11164
1 parent 0682def commit 0bfc616

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/bower/publish.sh

+15
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ function prepare {
6363
cp $BUILD_DIR/angular-csp.css $TMP_DIR/bower-angular
6464

6565

66+
#
67+
# Run local precommit script if there is one
68+
#
69+
for repo in "${REPOS[@]}"
70+
do
71+
if [ -f $TMP_DIR/bower-$repo/precommit.sh ]
72+
then
73+
echo "-- Running precommit.sh script for bower-$repo"
74+
cd $TMP_DIR/bower-$repo
75+
$TMP_DIR/bower-$repo/precommit.sh
76+
cd $SCRIPT_DIR
77+
fi
78+
done
79+
80+
6681
#
6782
# update bower.json
6883
# tag each repo

0 commit comments

Comments
 (0)