2015-02-10 18:18:16 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
2015-02-24 17:52:05 -05:00
|
|
|
shopt -s extglob
|
2015-02-10 18:18:16 -05:00
|
|
|
|
|
|
|
ROOT_DIR=$(cd $(dirname $0)/../..; pwd)
|
|
|
|
cd $ROOT_DIR
|
2015-02-24 17:52:05 -05:00
|
|
|
|
2015-02-10 18:18:16 -05:00
|
|
|
gulp clean
|
2015-08-11 19:33:03 -04:00
|
|
|
# benchpress.bundle and bundles.js will implicitly build everything we need
|
2015-12-09 22:51:10 -05:00
|
|
|
# TODO: revert to normal gulp once we fix https://github.com/angular/angular/issues/5229
|
|
|
|
# gulp benchpress.bundle bundles.js
|
|
|
|
node --max-old-space-size=1900 ./node_modules/.bin/gulp benchpress.bundle bundles.js
|
2015-02-10 18:18:16 -05:00
|
|
|
|
2015-02-24 17:52:05 -05:00
|
|
|
NPM_DIR=$ROOT_DIR/dist/npm
|
2015-12-01 15:42:54 -05:00
|
|
|
rm -fr $NPM_DIR
|
2015-02-24 17:52:05 -05:00
|
|
|
|
2015-11-18 00:35:29 -05:00
|
|
|
scripts/publish/npm_prepare.sh angular2
|
|
|
|
scripts/publish/npm_prepare.sh benchpress
|
2015-02-24 17:52:05 -05:00
|
|
|
|
2015-11-18 00:35:29 -05:00
|
|
|
npm publish $NPM_DIR/angular2
|
|
|
|
npm publish $NPM_DIR/benchpress
|