โ๐ฝโ๐ฝ Docker + Yarn + Nuxt3 + TypeScript + Vuetify + GitHub Pages + Copy of nuxt-utc-bucket
- ใชใใ PC ใซ volta ใๅ ฅใฃใฆใใฆใ yarn ใฎใใผใธใงใณใ ใฎไฝใ ใจใ้ขๅใใใใใใฃใฑ Docker ใใใณใใผใฏใณใ ใใใจใใใใจใงใ
- Nuxt3 ใฎ SPA ใไฝฟใใใชใใใใใซใชใใใใ nuxt-utc-bucket ใฎใณใใผใ Nuxt3 ใงไฝใใฎใ็ฎๆจใ ใใ
- Nuxt3 ใจ TypeScript ใฏใใฃใฑใชใใไธๅฎๅฎใชๆฐใใใใใชใใ่ฌใฎใจใฉใผใใงใใใใพใใฏ
yarn dev
ใๅ่ตทๅใใฆใฟใใใ
# ใใฃใฑใ Docker ใๆ้ซใ ใใชใ
cp ./local.env ./.env; docker compose up -d; docker compose exec nuxt3-service sh
yarn install; yarn dev
# --> http://localhost:3005/ ใงใขใฏใปในใ
# ๅใฝใใใฎใใผใธใงใณๆ
ๅ ฑใ
# ใใใชๆใใซใชใฃใฆใใใฏใใ
node --version
# --> v20.11.0
yarn --version
# --> 1.22.19
# NOTE: ไปๅใใกใใก Docker ใซใใใฎใฏใใญใผใซใซ็ฐๅขใฎ yarn v4 ใ้ช้ญใ ใใใ
yarn list nuxt
# โโ nuxt@3.10.1
yarn list vuetify
# โโ vuetify@3.5.3
# NOTE: warning ใๅบใใใฉใใใใฏๅฎๅ
จไธ่ดๆค็ดขใๆฌ ใ yarn list ใๆชใใ
# NOTE: run ใใคใใใใจใงใ vitest ใฏใในใๅพใซ่ชๅใง็ตไบใใใ (็ตไบใใชใใฎใใใใฉใซใใชใฎใใ)
# https://vitest.dev/guide/cli#vitest-run
yarn run vitest run
yarn run eslint . --ignore-path .gitignore
yarn run eslint . --fix --ignore-path .gitignore
yarn run nuxi typecheck