Skip to content

Commit db1514d

Browse files
committed
fix closure issue
1 parent 35cd1a0 commit db1514d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/closure-compiler/build-devapp-bundle.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ set -e -o pipefail
88
# Go to the project root directory
99
cd $(dirname $0)/../..
1010

11-
# Build a release of material and of the CDK package.
11+
# Build a release of material, material-moment-adapter, and cdk packages.
1212
$(npm bin)/gulp material:build-release:clean
1313
$(npm bin)/gulp cdk:build-release
14+
$(npm bin)/gulp material-moment-adapter:build-release
1415

1516
# Build demo-app with ES2015 modules. Closure compiler is then able to parse imports.
1617
$(npm bin)/gulp :build:devapp:assets :build:devapp:scss
@@ -38,6 +39,7 @@ OPTS=(
3839
"--js_module_root=dist/packages"
3940
"--js_module_root=dist/releases/material"
4041
"--js_module_root=dist/releases/cdk"
42+
"--js_module_root=dist/releases/material-moment-adapter"
4143
"--js_module_root=node_modules/@angular/core"
4244
"--js_module_root=node_modules/@angular/common"
4345
"--js_module_root=node_modules/@angular/compiler"
@@ -49,6 +51,7 @@ OPTS=(
4951
"--js_module_root=node_modules/@angular/platform-browser-dynamic"
5052
"--js_module_root=node_modules/@angular/animations"
5153
"--js_module_root=node_modules/@angular/animations/browser"
54+
"--js_module_root=node_modules/moment"
5255

5356
# Flags to simplify debugging.
5457
"--formatting=PRETTY_PRINT"
@@ -57,6 +60,7 @@ OPTS=(
5760
# Include the Material and CDK FESM bundles
5861
dist/releases/material/@angular/material.js
5962
dist/releases/cdk/@angular/cdk.js
63+
dist/releases/material-moment-adapter/@angular/material-moment-adapter.js
6064

6165
# Include all Angular FESM bundles.
6266
node_modules/@angular/core/@angular/core.js
@@ -71,8 +75,9 @@ OPTS=(
7175
node_modules/@angular/animations/@angular/animations.js
7276
node_modules/@angular/animations/@angular/animations/browser.js
7377

74-
# Include other dependencies like Zone.js and RxJS
78+
# Include other dependencies like Zone.js, Moment.js, and RxJS
7579
node_modules/zone.js/dist/zone.js
80+
node_modules/moment/moment.js
7681
$rxjsSourceFiles
7782

7883
# Include all files from the demo-app package.

0 commit comments

Comments
 (0)