From 2eb234bc636be08d88048f9fa99299e502f9e566 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Tue, 21 Jun 2016 14:44:36 -0700 Subject: [PATCH] chore(router): enable bundling --- build.sh | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/build.sh b/build.sh index 47607a54f6..5f3a6e7f90 100755 --- a/build.sh +++ b/build.sh @@ -94,27 +94,25 @@ do echo "====== BUNDLING: ${SRCDIR} =====" mkdir ${DESTDIR}/bundles - if [[ ${PACKAGE} != router ]]; then - ( - cd ${SRCDIR} - echo "..." # here just to have grep match something and not exit with 1 - ../../../node_modules/.bin/rollup -c rollup.config.js - ) 2>&1 | grep -v "as external dependency" + ( + cd ${SRCDIR} + echo "..." # here just to have grep match something and not exit with 1 + ../../../node_modules/.bin/rollup -c rollup.config.js + ) 2>&1 | grep -v "as external dependency" - $(npm bin)/tsc \ - --out ${UMD_ES5_PATH} \ - --target es5 \ - --lib "es6,dom" \ - --allowJs \ - ${UMD_ES6_PATH} + $(npm bin)/tsc \ + --out ${UMD_ES5_PATH} \ + --target es5 \ + --lib "es6,dom" \ + --allowJs \ + ${UMD_ES6_PATH} - rm ${UMD_ES6_PATH} + rm ${UMD_ES6_PATH} - cat ./modules/@angular/license-banner.txt > ${UMD_ES5_PATH}.tmp - cat ${UMD_ES5_PATH} >> ${UMD_ES5_PATH}.tmp - mv ${UMD_ES5_PATH}.tmp ${UMD_ES5_PATH} + cat ./modules/@angular/license-banner.txt > ${UMD_ES5_PATH}.tmp + cat ${UMD_ES5_PATH} >> ${UMD_ES5_PATH}.tmp + mv ${UMD_ES5_PATH}.tmp ${UMD_ES5_PATH} - $(npm bin)/uglifyjs -c --screw-ie8 -o ${UMD_ES5_MIN_PATH} ${UMD_ES5_PATH} - fi + $(npm bin)/uglifyjs -c --screw-ie8 -o ${UMD_ES5_MIN_PATH} ${UMD_ES5_PATH} fi done