Leaflet/build/publish.sh
2015-10-14 19:16:05 +03:00

27 lines
442 B
Bash
Executable File

#!/bin/bash
npm update
VERSION=$(node --eval "console.log(require('./package.json').version);")
npm test || exit 1
git checkout -b build
npm run build
git add dist/leaflet-src.js dist/leaflet.js dist/leaflet-src.map -f
copyfiles -u 1 build/*.json ./
tin -v $VERSION
git add component.json bower.json -f
git commit -m "v$VERSION"
git tag v$VERSION -f
git push --tags -f
npm publish --tag beta
git checkout master
git branch -D build