Permalink
Browse files

skipping pub build if web directory not present (#41)

  • Loading branch information...
Ross Hambrick authored and sethladd committed Sep 26, 2016
1 parent b24bc6d commit e0c976f35f6a478ff89937e5ebc718b2450a32d3
Showing with 11 additions and 7 deletions.
  1. +11 −7 bin/compile
View
@@ -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

0 comments on commit e0c976f

Please sign in to comment.