2016-04-28 20:50:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd `dirname $0`
|
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
|
|
|
|
if [[ "${VERSION}" == "" ]]
|
|
|
|
then
|
|
|
|
echo "Version number required"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./build.sh
|
|
|
|
|
|
|
|
echo "====== RENAMING \$\$ANGULAR_VERSION\$\$ to 0.0.0-${VERSION} ======"
|
2016-05-02 22:45:05 -04:00
|
|
|
find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g"
|
2016-05-03 15:59:30 -04:00
|
|
|
find ./dist/packages-dist/ -type f -name "*umd.js" -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g"
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
for PACKAGE in \
|
|
|
|
core \
|
|
|
|
compiler \
|
2016-05-13 16:33:58 -04:00
|
|
|
compiler_cli \
|
2016-04-28 20:50:03 -04:00
|
|
|
common \
|
|
|
|
http \
|
|
|
|
platform-browser \
|
|
|
|
platform-browser-dynamic \
|
|
|
|
platform-server \
|
|
|
|
router \
|
2016-05-02 17:10:58 -04:00
|
|
|
router-deprecated \
|
2016-04-28 20:50:03 -04:00
|
|
|
upgrade
|
|
|
|
do
|
|
|
|
DESTDIR=./dist/packages-dist/${PACKAGE}
|
|
|
|
echo "====== PUBLISHING: ${DESTDIR} ====="
|
|
|
|
npm publish ${DESTDIR} --access public
|
|
|
|
done
|