mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 20:55:48 +00:00
[TASK] add publish script
This commit is contained in:
23
scripts/publish
Normal file
23
scripts/publish
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
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 ..
|
||||||
Reference in New Issue
Block a user