Skip to content

Commit

Permalink
Release v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ittus committed Feb 13, 2019
1 parent 8e11d73 commit 79c6923
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +26,7 @@ Vue.directive('longclick', longClickInstance)
```javascript
<button v-longclick="() => changeValue(1)">+</button>
```
Checkout the demo here


## Config

Expand Down
22 changes: 22 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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://<USERNAME>.github.io/<REPO>
git push -f git@github.com:ittus/vue-long-click.git master:gh-pages

cd -
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-long-click",
"version": "0.0.3",
"version": "0.0.4",
"private": false,
"author": "Vu Minh Thang <vuminhthang.cm@gmail.com>",
"description": "Long click (longpress) directive library for VueJS",
Expand Down
5 changes: 5 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/vue-long-click/'
: '/'
}

0 comments on commit 79c6923

Please sign in to comment.