2015-02-10 18:18:16 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
ROOT_DIR=$(cd $(dirname $0)/../..; pwd)
|
|
|
|
cd $ROOT_DIR
|
|
|
|
gulp clean
|
|
|
|
gulp build.js.prod build.js.dev
|
|
|
|
|
|
|
|
function angular {
|
|
|
|
CHANNEL=$1
|
|
|
|
cd $ROOT_DIR/dist/js/$CHANNEL/es6/angular2
|
|
|
|
rm -fr test
|
2015-02-13 01:11:01 -05:00
|
|
|
npm publish ./ --tag "$CHANNEL"
|
2015-02-10 18:18:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function rttsAssert {
|
|
|
|
cd $ROOT_DIR/dist/js/prod/es6/rtts_assert
|
|
|
|
rm -fr test
|
|
|
|
npm publish ./
|
|
|
|
}
|
|
|
|
|
2015-02-11 13:13:49 -05:00
|
|
|
# only publish dev version of benchpress
|
|
|
|
# as implementation is not performance sensitive
|
|
|
|
function benchpress {
|
|
|
|
cd $ROOT_DIR/dist/js/dev/es6/benchpress
|
|
|
|
rm -fr test
|
|
|
|
npm publish ./
|
|
|
|
}
|
|
|
|
|
2015-02-10 18:18:16 -05:00
|
|
|
rttsAssert
|
|
|
|
angular dev
|
|
|
|
angular prod
|
2015-02-11 13:13:49 -05:00
|
|
|
benchpress
|