build: add licensing preamble to umd bundles

This commit is contained in:
Igor Minar 2016-05-03 13:59:30 -06:00
parent 905f38acb8
commit b600915953
3 changed files with 10 additions and 0 deletions

View File

@ -94,4 +94,8 @@ do
modules/\@angular/typings/es6-promise/es6-promise.d.ts modules/\@angular/typings/es6-promise/es6-promise.d.ts
rm ${UMDES6PATH} rm ${UMDES6PATH}
cat ./modules/@angular/license-banner.txt > ${UMDES5PATH}.tmp
cat ${UMDES5PATH} >> ${UMDES5PATH}.tmp
mv ${UMDES5PATH}.tmp ${UMDES5PATH}
done done

View File

@ -0,0 +1,5 @@
/**
* @license AngularJS v$$ANGULAR_VERSION$$
* (c) 2010-2016 Google, Inc. https://angular.io/
* License: MIT
*/

View File

@ -16,6 +16,7 @@ fi
echo "====== RENAMING \$\$ANGULAR_VERSION\$\$ to 0.0.0-${VERSION} ======" echo "====== RENAMING \$\$ANGULAR_VERSION\$\$ to 0.0.0-${VERSION} ======"
find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g" find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g"
find ./dist/packages-dist/ -type f -name "*umd.js" -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g"
for PACKAGE in \ for PACKAGE in \
core \ core \