Permalink
Browse files

feat(common): generate `closure-locale.ts` to tree shake locale data (#…

…18907)

Closure will only keep the data for the locale defined in `goog.LOCALE`

PR Close #18907
  • Loading branch information...
ocombe authored and mhevery committed Aug 21, 2017
1 parent 4c5aac8 commit 48789360b1825875c12de3bb5445796db875987c
View
@@ -485,7 +485,7 @@ do
if [[ ${PACKAGE} == "common" ]]; then
echo "====== Copy i18n locale data"
rsync -a --exclude=*.d.ts --exclude=*.metadata.json ${OUT_DIR}/i18n_data/ ${NPM_DIR}/i18n_data
rsync -a --exclude=*.d.ts --exclude=*.metadata.json ${OUT_DIR}/locales/ ${NPM_DIR}/locales
fi
else
echo "====== Copy ${PACKAGE} node tool"
View
@@ -44,3 +44,4 @@ gulp.task('changelog', loadTask('changelog'));
gulp.task('check-env', () => {/* this is a noop because the env test ran already above */});
gulp.task('cldr:extract', loadTask('cldr', 'extract'));
gulp.task('cldr:download', loadTask('cldr', 'download'));
gulp.task('cldr:gen-closure-locale', loadTask('cldr', 'closure'));
@@ -17,6 +17,7 @@
"node_modules/@angular/bazel/**",
"node_modules/@angular/compiler-cli/**",
// Workaround bug introduced by 079d884
"node_modules/@angular/common/locales.d.ts",
"node_modules/@angular/common/locales/**",
"node_modules/@angular/tsc-wrapped/**"
]
Oops, something went wrong.

0 comments on commit 4878936

Please sign in to comment.