Add release.sh

This commit is contained in:
Marcos Moura 2016-11-14 19:20:11 -02:00
parent d382514373
commit 02127eb6b0
3 changed files with 63 additions and 4 deletions

33
build/release.sh Normal file
View file

@ -0,0 +1,33 @@
# Based on Vue.js Release file
# https://github.com/vuejs/vue/blob/dev/build/release.sh
set -e
if [[ -z $1 ]]; then
echo "Enter new version: "
read VERSION
else
VERSION=$1
fi
read -p "Releasing $VERSION - are you sure? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Releasing $VERSION ..."
npm run lint
# build
VERSION=$VERSION npm run build
# commit
git add -A
git commit -m "[build] $VERSION"
npm version $VERSION --message "[release] $VERSION"
# publish
git push origin refs/tags/v$VERSION
git push
npm run deploy-docs
npm publish
fi

View file

@ -2,6 +2,31 @@
<single-page class="single-page-home" label="Changelog">
<single-page-banner label="Changelog"></single-page-banner>
<section>
<h2 class="md-headline">v0.3.0 - Huge Release</h2>
<h3 class="md-title">New Components:</h3>
<ul>
<li>Data Table</li>
<li>Menu</li>
<li>Select with multiple selection</li>
</ul>
<h3 class="md-title">Fixes:</h3>
<ul>
md-input not reactive when initial value empty <strong><a href="https://github.com/marcosmoura/vue-material/issues/40" target="_blank" rel="noopener">#40</a></strong>
md-textarea with maxlength not writable <strong><a href="https://github.com/marcosmoura/vue-material/issues/43" target="_blank" rel="noopener"></a>#43</strong>
Do not style scrollbars by default <strong><a href="https://github.com/marcosmoura/vue-material/issues/46" target="_blank" rel="noopener">#46</a></strong>
SELECT component: display issue in IE11 <strong><a href="https://github.com/marcosmoura/vue-material/issues/34" target="_blank" rel="noopener">#34</a></strong>
Select component popup shows behind other components <strong><a href="https://github.com/marcosmoura/vue-material/issues/26" target="_blank" rel="noopener">#26</a></strong>
md-select text vs value <strong><a href="https://github.com/marcosmoura/vue-material/issues/24" target="_blank" rel="noopener"></a>#24</strong>
md-button ignores type prop <strong><a href="https://github.com/marcosmoura/vue-material/issues/41" target="_blank" rel="noopener">#41</a> (Thanks to <a href="https://github.com/pauloramires" target="_blank" rel="noopener">@pauloramires</a>)</strong>
md-select displaying selected text (rather than value) <strong><a href="https://github.com/marcosmoura/vue-material/issues/36" target="_blank" rel="noopener">#36</a></strong>
Added 'type' props to switch button <strong><a href="https://github.com/marcosmoura/vue-material/pull/27" target="_blank" rel="noopener">#27</a> (Thanks to <a href="https://github.com/guillaumerxl" target="_blank" rel="noopener">@guillaumerxl</a>)</strong>
Add babel-cli as dev dependency <strong><a href="https://github.com/marcosmoura/vue-material/pull/28" target="_blank" rel="noopener">#28</a> (Thanks to <a href="https://github.com/lucassouza1" target="_blank" rel="noopener">@lucassouza1</a>)</strong>
Remove dotted outline around button in firefox <strong><a href="https://github.com/marcosmoura/vue-material/pull/52" target="_blank" rel="noopener">#52</a> (Thanks to <a href="https://github.com/yeknava" target="_blank" rel="noopener">@yeknava</a>)</strong>
</ul>
</section>
<section>
<h2 class="md-headline">v0.2.0 - New components</h2>
<h3 class="md-title">New Components:</h3>
@ -9,17 +34,17 @@
<li>Cards</li>
</ul>
<h3 class="md-title">Changes:</h3>
<h3 class="md-title">Fixes:</h3>
<ul>
<li>Add Roboto font and google icons to the docs <strong><a href="https://github.com/marcosmoura/vue-material/commit/421ce7bb21a1489c8f98ee12d0d525eec6b0ee12" target="_blank" rel="noopener">421ce7b</a></strong></li>
<li>Explains better how to install and configure vue-material <strong><a href="https://github.com/marcosmoura/vue-material/commit/cc43985fc1d30403a7c95bfeb2dc38bbcc1acb9e" target="_blank" rel="noopener">cc43985</a></strong></li>
<li>Emit change &amp; input events from mdTextarea <strong><a href="https://github.com/marcosmoura/vue-material/commit/b474af9fd8d5f4563914e5aae47d14b7c8c62fb2" target="_blank" rel="noopener">b474af9</a></strong> (Thanks to <strong><a href="https://github.com/jvanbrug" target="_blank" rel="noopener">@jvanbrug</a></strong>)</li>
<li>Emit change &amp; input events from mdTextarea <strong><a href="https://github.com/marcosmoura/vue-material/commit/b474af9fd8d5f4563914e5aae47d14b7c8c62fb2" target="_blank" rel="noopener">b474af9</a></strong> (Thanks to <a href="https://github.com/jvanbrug" target="_blank" rel="noopener">@jvanbrug</a>)</li>
</ul>
</section>
<section>
<h2 class="md-headline">v0.1.2 - Minor Fixes</h2>
<h3 class="md-title">Changes:</h3>
<h3 class="md-title">Fixes:</h3>
<ul>
<li>Fixed tooltips on Firefox</li>
<li>Misaligned icons inside buttons on Firefox</li>

View file

@ -38,7 +38,8 @@
"build:lib": "babel-node build/server/build-lib.js --presets es2015,stage-0",
"build": "rm -rf dist && npm run build:docs && npm run build:lib",
"lint": "eslint --ext .js,.vue --fix src",
"deploy-docs": "git push origin `git subtree split --prefix dist/docs master`:gh-pages --force"
"deploy-docs": "git push origin `git subtree split --prefix dist/docs master`:gh-pages --force",
"release": "bash build/release.sh"
},
"dependencies": {
"autosize": "^3.0.17",