build: add licensing preamble to umd bundles
This commit is contained in:
parent
905f38acb8
commit
b600915953
4
build.sh
4
build.sh
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
/**
|
||||||
|
* @license AngularJS v$$ANGULAR_VERSION$$
|
||||||
|
* (c) 2010-2016 Google, Inc. https://angular.io/
|
||||||
|
* License: MIT
|
||||||
|
*/
|
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue