noriyuki-shimizu / article-nuxt3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

技術記事閲覧サイト

https://shiminori-tec-articles.onrender.com/

Setup

Make sure to install the dependencies:

npm install

Development Server

Start the development server on http://localhost:3000:

npm run dev

Lint

Executing Lint:

npm run lint

Unit Test

Executing Unit Test:

npm run test:ut

VRT

Executing VRT:

# Image pull
docker pull mcr.microsoft.com/playwright:v1.43.1-jammy

# Docker run
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.43.1-jammy /bin/bash

---

# Install dependencies
root@docker-desktop:/work# npm ci

# Install Playwright Browsers
root@docker-desktop:/work# npx playwright install --with-deps chrome msedge

# Build in VRT mode
root@docker-desktop:/work# npm run build:vrt

# Executing VRT
root@docker-desktop:/work# npm run test:vrt

# Update Snapshots
root@docker-desktop:/work# npm run test:vrt:us

Format

Perform file formatting:

npm run format

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Deploy

Server: Render

About


Languages

Language:TypeScript 72.2%Language:Vue 17.9%Language:SCSS 5.5%Language:JavaScript 4.0%Language:Dockerfile 0.3%