diff --git a/luckydiamond/deploy.sh b/luckydiamond/deploy.sh new file mode 100644 index 0000000..bf187f8 --- /dev/null +++ b/luckydiamond/deploy.sh @@ -0,0 +1,25 @@ +#!/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' + +# if you are deploying to https://.github.io +# git push -f git@github.com:/.github.io.git main + +# if you are deploying to https://.github.io/ +git push -f git@github.com:danilt2000/LuckyDiamond.git main:gh-pages + +cd - \ No newline at end of file diff --git a/luckydiamond/package.json b/luckydiamond/package.json index 2ad3bf8..3d292ae 100644 --- a/luckydiamond/package.json +++ b/luckydiamond/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": { "core-js": "^3.8.3", @@ -21,4 +22,4 @@ "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3" } -} +} \ No newline at end of file diff --git a/luckydiamond/src/assets/js/AuthService.js b/luckydiamond/src/assets/js/AuthService.js new file mode 100644 index 0000000..e69de29 diff --git a/luckydiamond/src/components/HeaderComponent.vue b/luckydiamond/src/components/HeaderComponent.vue index 0caf0fd..ab00b4d 100644 --- a/luckydiamond/src/components/HeaderComponent.vue +++ b/luckydiamond/src/components/HeaderComponent.vue @@ -1,3 +1,17 @@ + - - \ No newline at end of file diff --git a/luckydiamond/vue.config.js b/luckydiamond/vue.config.js index 910e297..17382aa 100644 --- a/luckydiamond/vue.config.js +++ b/luckydiamond/vue.config.js @@ -1,4 +1,7 @@ -const { defineConfig } = require('@vue/cli-service') -module.exports = defineConfig({ - transpileDependencies: true -}) +// vue.config.js file to be placed in the root of your repository + +module.exports = { + publicPath: process.env.NODE_ENV === 'production' + ? '/LuckyDiamond/' + : '/' +} \ No newline at end of file