From 9a6d436815ccb5d91e2ce7bc2693f1d63a86a9c5 Mon Sep 17 00:00:00 2001 From: HealerNguyen Date: Mon, 4 Sep 2023 20:50:03 +0700 Subject: [PATCH 1/2] deploy --- deploy.sh | 25 +++++++++++++++++++++++++ docs/.vitepress/config.ts | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..fceaa69 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env sh + +# abort on errors +set -e + +# build +yarn docs:build + +# navigate into the build output directory +cd docs/.vitepress/dist + +# 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:/.github.io.git master + +# if you are deploying to https://.github.io/ +git push -f git@github.com:healerlab/vue3-simple-otp-input.git main:gh-pages + +cd - \ No newline at end of file diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index cb42ed4..57d7943 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ - base: '/', + base: '/vue3-simple-otp-input/', lang: "en-US", lastUpdated: true, cleanUrls: true, From 074573dd2a525d8407bf8013c8a8cfd868efd86f Mon Sep 17 00:00:00 2001 From: HealerNguyen Date: Mon, 4 Sep 2023 22:09:07 +0700 Subject: [PATCH 2/2] update license --- LICENSE | 21 +++++++++++++++++++++ README.md | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f2a75a9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 HealerLab + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 0c1a369..2b27953 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # Vue 3 simple OTP input +[![npm](https://img.shields.io/npm/v/@healerlab/vue3-simple-otp-input?style=flat-square)](https://www.npmjs.com/package/@healerlab/vue3-simple-otp-input) +[![npm](https://img.shields.io/npm/dw/@healerlab/vue3-simple-otp-input?style=flat-square)](https://www.npmjs.com/package/@healerlab/vue3-simple-otp-input) +[![GitHub](https://img.shields.io/github/license/healerlab/vue3-simple-otp-input?style=flat-square)](https://github.com/healerlab/vue3-simple-otp-input/blob/main/LICENSE) + +## Demo +[Demo and docs](https://healerlab.github.io/vue3-simple-otp-input) + ## Installation ### Prerequisites