angular/scripts/publish/npm_publish.sh
Tobias Bosch 729e38af19 feat(build): add npm publish script
Also fixes gulpfile:
- `runSequence` needs to be called with `done` callback
- `es5build` should only run when the task executes…
2015-02-10 16:28:28 -08:00

25 lines
385 B
Bash
Executable File

#!/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
npm publish ./ --tag "ng2$CHANNEL"
}
function rttsAssert {
cd $ROOT_DIR/dist/js/prod/es6/rtts_assert
rm -fr test
npm publish ./
}
rttsAssert
angular dev
angular prod