Skip to content

Commit 2f51aae

Browse files
committed
Add release.sh
1 parent 568cfcb commit 2f51aae

File tree

3 files changed

+63
-4
lines changed

3 files changed

+63
-4
lines changed

build/release.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Based on Vue.js Release file
2+
# https://github.com/vuejs/vue/blob/dev/build/release.sh
3+
4+
set -e
5+
6+
if [[ -z $1 ]]; then
7+
echo "Enter new version: "
8+
read VERSION
9+
else
10+
VERSION=$1
11+
fi
12+
13+
read -p "Releasing $VERSION - are you sure? (y/n) " -n 1 -r
14+
echo
15+
if [[ $REPLY =~ ^[Yy]$ ]]; then
16+
echo "Releasing $VERSION ..."
17+
18+
npm run lint
19+
20+
# build
21+
VERSION=$VERSION npm run build
22+
23+
# commit
24+
git add -A
25+
git commit -m "[build] $VERSION"
26+
npm version $VERSION --message "[release] $VERSION"
27+
28+
# publish
29+
git push origin refs/tags/v$VERSION
30+
git push
31+
npm run deploy-docs
32+
npm publish
33+
fi

docs/src/pages/Changelog.vue

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,49 @@
22
<single-page class="single-page-home" label="Changelog">
33
<single-page-banner label="Changelog"></single-page-banner>
44

5+
<section>
6+
<h2 class="md-headline">v0.3.0 - Huge Release</h2>
7+
<h3 class="md-title">New Components:</h3>
8+
<ul>
9+
<li>Data Table</li>
10+
<li>Menu</li>
11+
<li>Select with multiple selection</li>
12+
</ul>
13+
14+
<h3 class="md-title">Fixes:</h3>
15+
<ul>
16+
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>
17+
md-textarea with maxlength not writable <strong><a href="https://github.com/marcosmoura/vue-material/issues/43" target="_blank" rel="noopener"></a>#43</strong>
18+
Do not style scrollbars by default <strong><a href="https://github.com/marcosmoura/vue-material/issues/46" target="_blank" rel="noopener">#46</a></strong>
19+
SELECT component: display issue in IE11 <strong><a href="https://github.com/marcosmoura/vue-material/issues/34" target="_blank" rel="noopener">#34</a></strong>
20+
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>
21+
md-select text vs value <strong><a href="https://github.com/marcosmoura/vue-material/issues/24" target="_blank" rel="noopener"></a>#24</strong>
22+
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>
23+
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>
24+
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>
25+
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>
26+
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>
27+
</ul>
28+
</section>
29+
530
<section>
631
<h2 class="md-headline">v0.2.0 - New components</h2>
732
<h3 class="md-title">New Components:</h3>
833
<ul>
934
<li>Cards</li>
1035
</ul>
1136

12-
<h3 class="md-title">Changes:</h3>
37+
<h3 class="md-title">Fixes:</h3>
1338
<ul>
1439
<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>
1540
<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>
16-
<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>
41+
<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>
1742
</ul>
1843
</section>
1944

2045
<section>
2146
<h2 class="md-headline">v0.1.2 - Minor Fixes</h2>
22-
<h3 class="md-title">Changes:</h3>
47+
<h3 class="md-title">Fixes:</h3>
2348
<ul>
2449
<li>Fixed tooltips on Firefox</li>
2550
<li>Misaligned icons inside buttons on Firefox</li>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"build:lib": "babel-node build/server/build-lib.js --presets es2015,stage-0",
3939
"build": "rm -rf dist && npm run build:docs && npm run build:lib",
4040
"lint": "eslint --ext .js,.vue --fix src",
41-
"deploy-docs": "git push origin `git subtree split --prefix dist/docs master`:gh-pages --force"
41+
"deploy-docs": "git push origin `git subtree split --prefix dist/docs master`:gh-pages --force",
42+
"release": "bash build/release.sh"
4243
},
4344
"dependencies": {
4445
"autosize": "^3.0.17",

0 commit comments

Comments
 (0)