Skip to content

Commit

Permalink
Github demo site add
Browse files Browse the repository at this point in the history
  • Loading branch information
Jebasuthan committed Nov 19, 2021
1 parent 2a922a9 commit 21dc13e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]:Jebasuthan/vue-pagination.git master:gh-pages
cd -
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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-pagination/'
: '/'
}

0 comments on commit 21dc13e

Please sign in to comment.