Tweak to gulp all command
First run gulp in pillar and other dependencies, then run gulp in the current repo.
This commit is contained in:
6
gulp
6
gulp
@@ -15,9 +15,8 @@ if [ "$1" == "watch" ]; then
|
|||||||
# Treat "gulp watch" as "gulp && gulp watch"
|
# Treat "gulp watch" as "gulp && gulp watch"
|
||||||
$GULP
|
$GULP
|
||||||
elif [ "$1" == "all" ]; then
|
elif [ "$1" == "all" ]; then
|
||||||
|
pushd .
|
||||||
# This is useful when building the Blender Cloud project for the first time.
|
# This is useful when building the Blender Cloud project for the first time.
|
||||||
# Run "gulp" once inside the repo
|
|
||||||
$GULP
|
|
||||||
# Run ./gulp in all depending projects (pillar, attract, flamenco, pillar-svnman)
|
# Run ./gulp in all depending projects (pillar, attract, flamenco, pillar-svnman)
|
||||||
declare -a repos=("pillar" "attract" "flamenco" "pillar-svnman")
|
declare -a repos=("pillar" "attract" "flamenco" "pillar-svnman")
|
||||||
for r in "${repos[@]}"
|
for r in "${repos[@]}"
|
||||||
@@ -25,6 +24,9 @@ elif [ "$1" == "all" ]; then
|
|||||||
cd ../$r
|
cd ../$r
|
||||||
./gulp
|
./gulp
|
||||||
done
|
done
|
||||||
|
popd
|
||||||
|
# Run "gulp" once inside the repo
|
||||||
|
$GULP
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user