build: use shared logic to build packages (#4202)

* build: use shared logic to build packages

* No longer creates the whole set of gulp tasks just to build a single package.
* Makes the package building & releasing more consistent. No extra `build:release` just for the `lib` package.

References #4108

* Address feedback
This commit is contained in:
Paul Gschwendtner
2017-04-25 18:50:47 +02:00
committed by mmalerba
parent 14b330eecd
commit 2b8f753028
20 changed files with 164 additions and 232 deletions
@@ -9,8 +9,8 @@ set -e -o pipefail
cd $(dirname $0)/../..
# Build a release of the library and of the CDK package.
$(npm bin)/gulp build:release
# Build a release of material and of the CDK package.
$(npm bin)/gulp material:build-release:clean
$(npm bin)/gulp cdk:build-release
# Build demo-app with ES2015 modules. Closure compiler is then able to parse imports.
+1 -1
View File
@@ -21,7 +21,7 @@ repoUrl="https://github.com/angular/material2-builds.git"
repoDir="tmp/$repoName"
# Create a release of the current repository.
$(npm bin)/gulp build:release
$(npm bin)/gulp material:build-release:clean
# Prepare cloning the builds repository
rm -rf $repoDir