@@ -8,11 +8,13 @@ set -e -o pipefail
88# Go to the project root directory
99cd $( dirname $0 ) /../..
1010
11- # Build the demo-app and also create the release output.
12- $( npm bin) /gulp build:devapp
13- $( npm bin) /gulp :package:release
1411
15- # Rebuild demo-app with ES2015 modules. Closure compiler is then able to parse imports.
12+ # Build a release of the library and of the CDK package.
13+ $( npm bin) /gulp build:release
14+ $( npm bin) /gulp cdk:build-release
15+
16+ # Build demo-app with ES2015 modules. Closure compiler is then able to parse imports.
17+ $( npm bin) /gulp :build:devapp:assets :build:devapp:scss
1618$( npm bin) /tsc -p src/demo-app/tsconfig-build.json --target ES2015 --module ES2015
1719
1820# Re-compile RxJS sources into ES2015. Otherwise closure compiler can't parse it properly.
4042 # List of path prefixes to be removed from ES6 & CommonJS modules.
4143 " --js_module_root=dist/packages"
4244 " --js_module_root=dist/releases/material"
45+ " --js_module_root=dist/releases/cdk"
4346 " --js_module_root=node_modules/@angular/core"
4447 " --js_module_root=node_modules/@angular/common"
4548 " --js_module_root=node_modules/@angular/compiler"
5659 " --formatting=PRETTY_PRINT"
5760 " --debug"
5861
59- # Include the Material FESM bundle
62+ # Include the Material and CDK FESM bundles
6063 dist/releases/material/@angular/material.js
64+ dist/releases/cdk/@angular/cdk.js
6165
6266 # Include all Angular FESM bundles.
6367 node_modules/@angular/core/@angular/core.js
@@ -90,4 +94,4 @@ echo ${OPTS[*]} > $closureFlags
9094# Run the Google Closure compiler java runnable.
9195java -jar node_modules/google-closure-compiler/compiler.jar --flagfile $closureFlags
9296
93- echo " Finished bundling the dev-app using google closure compiler.."
97+ echo " Finished bundling the dev-app using google closure compiler.."
0 commit comments