From ee8da36d081b45bde0e4caea12a501ef6f4a0983 Mon Sep 17 00:00:00 2001 From: Rado Kirov Date: Thu, 18 Jun 2015 16:07:35 -0700 Subject: [PATCH] chore(pub): add angular2_material to pub --- package.json | 3 ++- scripts/publish/pub_publish.sh | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e502b42a00..d4a2bf2a05 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "Rado Kirov ", "Tobias Bosch ", "Victor Savkin ", - "Yegor Jbanov " + "Yegor Jbanov ", + "Jeremy Elbourn " ], "license": "Apache-2.0", "repository": { diff --git a/scripts/publish/pub_publish.sh b/scripts/publish/pub_publish.sh index 17fe02dad3..d6968d2e30 100755 --- a/scripts/publish/pub_publish.sh +++ b/scripts/publish/pub_publish.sh @@ -5,6 +5,11 @@ set -ex shopt -s extglob +DRY_RUN=false +if [[ $1 == '--dry_run' ]]; then + DRY_RUN=true +fi; + ROOT_DIR=$(cd $(dirname $0)/../..; pwd) cd $ROOT_DIR @@ -12,6 +17,7 @@ gulp clean gulp build/packages.dart gulp build/pubspec.dart gulp build/analyze.dart +gulp build.dart.material PKG_DIR=$ROOT_DIR/dist/pub rm -fr $PKG_DIR @@ -27,9 +33,12 @@ function publishModule { node scripts/publish/pubspec_cleaner.js --pubspec-file=$PUBLISH_DIR/pubspec.yaml - (cd $PUBLISH_DIR && pub publish) + if [[ ! $DRY_RUN ]]; then + (cd $PUBLISH_DIR && pub publish) + fi; } publishModule angular2 publishModule benchpress publishModule benchmarks +publishModule angular2_material