From 79c69236c7267e4937082d9ba963221d63c75018 Mon Sep 17 00:00:00 2001 From: Vu Minh Thang Date: Wed, 13 Feb 2019 17:02:13 +0900 Subject: [PATCH] Release v0.0.4 --- README.md | 4 +++- deploy.sh | 22 ++++++++++++++++++++++ package.json | 2 +- vue.config.js | 5 +++++ 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 deploy.sh create mode 100644 vue.config.js diff --git a/README.md b/README.md index ae819a3..0f7a72f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [![npm version](https://badge.fury.io/js/vue-long-click.svg)](https://www.npmjs.com/package/vue-long-click) +Checkout the demo at https://ittus.github.io/vue-long-click/ + ![DemoGIF](./images/demo.gif) ## Install @@ -24,7 +26,7 @@ Vue.directive('longclick', longClickInstance) ```javascript ``` -Checkout the demo here + ## Config diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..cbfd9e0 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env sh + +# abort on errors +set -e + +# build +npm run build:docs + +# navigate into the build output directory +cd dist/docs + +# if you are deploying to a custom domain +# echo 'www.example.com' > CNAME + +git init +git add -A +git commit -m 'deploy' + +# if you are deploying to https://.github.io/ +git push -f git@github.com:ittus/vue-long-click.git master:gh-pages + +cd - diff --git a/package.json b/package.json index ee342e9..94f114d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-long-click", - "version": "0.0.3", + "version": "0.0.4", "private": false, "author": "Vu Minh Thang ", "description": "Long click (longpress) directive library for VueJS", diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..7c9d3f7 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,5 @@ +module.exports = { + publicPath: process.env.NODE_ENV === 'production' + ? '/vue-long-click/' + : '/' +}