From 02127eb6b03487a215b5f3d21da79987822ea1b0 Mon Sep 17 00:00:00 2001 From: Marcos Moura Date: Mon, 14 Nov 2016 19:20:11 -0200 Subject: [PATCH] Add release.sh --- build/release.sh | 33 +++++++++++++++++++++++++++++++++ docs/src/pages/Changelog.vue | 31 ++++++++++++++++++++++++++++--- package.json | 3 ++- 3 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 build/release.sh diff --git a/build/release.sh b/build/release.sh new file mode 100644 index 0000000..6138bbc --- /dev/null +++ b/build/release.sh @@ -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 diff --git a/docs/src/pages/Changelog.vue b/docs/src/pages/Changelog.vue index 2dfe68d..4da20ac 100644 --- a/docs/src/pages/Changelog.vue +++ b/docs/src/pages/Changelog.vue @@ -2,6 +2,31 @@ +
+

v0.3.0 - Huge Release

+

New Components:

+
    +
  • Data Table
  • +
  • Menu
  • +
  • Select with multiple selection
  • +
+ +

Fixes:

+
    + md-input not reactive when initial value empty #40 + md-textarea with maxlength not writable #43 + Do not style scrollbars by default #46 + SELECT component: display issue in IE11 #34 + Select component popup shows behind other components #26 + md-select text vs value #24 + md-button ignores type prop #41 (Thanks to @pauloramires) + md-select displaying selected text (rather than value) #36 + Added 'type' props to switch button #27 (Thanks to @guillaumerxl) + Add babel-cli as dev dependency #28 (Thanks to @lucassouza1) + Remove dotted outline around button in firefox #52 (Thanks to @yeknava) +
+
+

v0.2.0 - New components

New Components:

@@ -9,17 +34,17 @@
  • Cards
  • -

    Changes:

    +

    Fixes:

    • Add Roboto font and google icons to the docs 421ce7b
    • Explains better how to install and configure vue-material cc43985
    • -
    • Emit change & input events from mdTextarea b474af9 (Thanks to @jvanbrug)
    • +
    • Emit change & input events from mdTextarea b474af9 (Thanks to @jvanbrug)

    v0.1.2 - Minor Fixes

    -

    Changes:

    +

    Fixes:

    • Fixed tooltips on Firefox
    • Misaligned icons inside buttons on Firefox
    • diff --git a/package.json b/package.json index 3d670b0..7e7d8c0 100644 --- a/package.json +++ b/package.json @@ -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",