From 21dc13e3c682f173d91c8c42ca96deb14a2b8044 Mon Sep 17 00:00:00 2001 From: Jeba Suthan Date: Fri, 19 Nov 2021 08:37:01 +0530 Subject: [PATCH] Github demo site add --- deploy.sh | 14 ++++++++++++++ package.json | 3 ++- vue.config.js | 5 +++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 deploy.sh create mode 100644 vue.config.js diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..74a0646 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env sh +# abort on errors +set -e +# build +npm run build +# navigate into the build output directory +cd dist +# if you are deploying to a custom domain +# echo 'www.example.com' > CNAME +git init +git add -A +git commit -m 'deploy' +git push -f git@github.com:Jebasuthan/vue-pagination.git master:gh-pages +cd - \ No newline at end of file diff --git a/package.json b/package.json index 48f4b8d..56751de 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "lint": "vue-cli-service lint", + "deploy": "sh deploy.sh" }, "dependencies": { "axios": "^0.24.0", diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..1097af2 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,5 @@ +module.exports = { + publicPath: process.env.NODE_ENV === 'production' + ? '/vue-pagination/' + : '/' +}