mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
23 lines
450 B
Plaintext
23 lines
450 B
Plaintext
rm -rf build
|
|
gulp
|
|
npm test
|
|
|
|
echo ""
|
|
echo "publish to npm"
|
|
npm publish
|
|
rm -rf dist
|
|
|
|
echo ""
|
|
echo "publish to bower"
|
|
|
|
git clone git@github.com:ripple/bower-ripple.git dist
|
|
gulp bower
|
|
cd dist
|
|
version=$(cat bower.json | grep -Eo '([0-9]\.?)+(-rc[0-9])?')
|
|
echo "version: $version"
|
|
git add ripple.js ripple-debug.js ripple-min.js bower.json
|
|
git commit -m "[TASK] add v$version"
|
|
git tag "v$version"
|
|
git push origin master
|
|
git push --tags origin master
|
|
cd .. |