Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from eee-c/all-pubspecs

Install all pubspec.yaml dependencies
  • Loading branch information...
commit 3706b7e37569ed23639473d23985642b941f9bf6 2 parents ef593d3 + c1a4692
@igrigorik authored
Showing with 14 additions and 4 deletions.
  1. +14 −4 bin/compile
View
18 bin/compile
@@ -53,11 +53,21 @@ message "-----> Install packages"
cd $BUILD_DIR
-#start pub from the /app folder to have correct symlink paths
-/app/dart-sdk/bin/pub install
+for filename in `find . -name pubspec.yaml | grep -v dart-sdk | grep -v pub-cache`; do
+ pub_dir=`dirname $filename`
+ message "*** Found pubspec.yaml in $pub_dir"
+ cd $BUILD_DIR/$pub_dir
+
+ #start pub from the /app folder to have correct symlink paths
+ /app/dart-sdk/bin/pub install
+
+ if [ -e $BUILD_DIR/$pub_dir/web/packages ]; then
+ cd $BUILD_DIR/$pub_dir/web
+ ln -sf ../packages
+ message "Fixed web symlink"
+ fi
+done
# move packages from cache directory into build directory
cd $CACHE_DIR
cp -r $CACHE_DIR/pub-cache $BUILD_DIR/$PACKAGES_DIR
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.