Front Mentor click here
install Vue CLI npm install -g @vue/cli
create project vue create nama_project
install Tailwind CSS npm install -D tailwindcss
run project npm run serve
- setting vue.config.js
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
publicPath: "/name-repository/"
})
- create file
deploy.sh
#!/usr/bin/env sh
# abort on errors
set -e
#build
npm run build
cd dist
git init
git add -A
git commit -m "deploy"
git push -f git@github.com:<username>/<name-repository>.git master:deploy
cd -
-
setting package.json
"deploy": "sh deploy.sh"
-
run in terminal
npm run deploy
-
check github_pages