Skip to content

Commit

Permalink
skipping pub build if web directory not present (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Hambrick authored and sethladd committed Sep 26, 2016
1 parent b24bc6d commit e0c976f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions bin/compile
Expand Up @@ -100,15 +100,19 @@ for filename in `find . -name pubspec.yaml | grep -v dart-sdk | grep -v pub-cach
#start pub from the /app folder to have correct symlink paths
/app/dart-sdk/bin/pub get

message "*** Running pub build"

if [[ -z "$DART_BUILD_CMD" ]]
if [ -d "web" ]
then
message 'Building with "pub build"'
/app/dart-sdk/bin/pub build
message "*** Running pub build"
if [[ -z "$DART_BUILD_CMD" ]]
then
message 'Building with "pub build"'
/app/dart-sdk/bin/pub build
else
message "Building with \"$DART_BUILD_CMD\""
eval $DART_BUILD_CMD
fi
else
message "Building with \"$DART_BUILD_CMD\""
eval $DART_BUILD_CMD
message '*** Skipping pub build because "web" folder not found'
fi

done
Expand Down

0 comments on commit e0c976f

Please sign in to comment.