vue-material/build/release.sh

62 lines
1.3 KiB
Bash
Raw Normal View History

2016-11-14 21:20:11 +00:00
# Based on Vue.js Release file
# https://github.com/vuejs/vue/blob/dev/build/release.sh
set -e
0.4.0 * Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
2016-12-05 03:57:58 +00:00
function get_package_version {
echo $(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
}
# init the process
2016-11-14 21:20:11 +00:00
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 ..."
0.4.0 * Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
2016-12-05 03:57:58 +00:00
# check errors
2016-11-14 21:20:11 +00:00
npm run lint
# generate old docs tree
0.4.0 * Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
2016-12-05 03:57:58 +00:00
PACKAGE_VERSION=$(get_package_version)
cp -Rf dist/docs/releases tmp-releases
cp -Rf dist/docs tmp-releases/v$PACKAGE_VERSION
0.4.0 * Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
2016-12-05 03:57:58 +00:00
# append version
sed -i '' -e "s|\"]|\", \"$VERSION\"]|g" docs/versions.json
0.4.0 * Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
2016-12-05 03:57:58 +00:00
2016-11-14 21:20:11 +00:00
# build
VERSION=$VERSION npm run build
cp -Rf tmp-releases dist/docs/releases
rm -Rf tmp-releases
2016-11-14 21:20:11 +00:00
# commit
git add -A
git commit -m "[build] $VERSION"
2016-12-05 04:07:45 +00:00
npm version $VERSION --message "[release] $VERSION"
2016-11-14 21:20:11 +00:00
# publish
2016-12-05 04:07:45 +00:00
git push origin refs/tags/v$VERSION
2016-11-14 21:20:11 +00:00
git push
0.4.0 * Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
2016-12-05 03:57:58 +00:00
# deploy
if [ "`git remote| grep site`" == "site" ] ; then
git remote remove site
fi
git remote add site https://github.com/vuematerial/vuematerial.github.io.git
git push site `git subtree split --prefix dist/docs master`:master --force --progress
2016-12-05 04:07:45 +00:00
npm publish
2016-11-14 21:20:11 +00:00
fi