Skip to content

vbetsch/portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

62 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

portfolio

CI CD

My official personal website

๐Ÿš€ Getting Started

We recommend using Node version lts/krypton -> v24.14.1.

1. Setup environment

Create a .env file by copying the .env.example file. These values are only for the local environment, you have to modify it.

2. Install dependencies

npm install

3. Check your installation

npm run check

4. Start the project (development)

npm run start:dev

๐Ÿงช Running Tests

Run all tests

npm test

Units tests

Run units tests in default mode

npm run test:units

Run units tests with coverage

npm run test:units:cov

Run units tests in watch mode

npm run test:units:watch

Playwright

Run all Playwright tests in CLI

npm run test:playwright

Run all Playwright tests in UI

npm run test:playwright:ui

Run only Playwright tests with tag @a11y

in CLI
npm run test:playwright:grep -- @a11y
in UI
npm run test:playwright:ui:grep -- @a11y

HTML

Validate HTML structure

npm run test:html

๐Ÿงน Linting & Formatting

Run Oxlint in default mode

npm run lint:ox

Run ESLint in default mode

npm run lint:es

Run ESLint in strict mode

npm run lint:es:strict

Format the code

npm run format

๐Ÿ—๏ธ Building the Project

Build application

npm run build

Check the build

npm run start:prod

๐Ÿšฅ Development Workflow

Validate your setup by running the following commands in order:

npm clean-install           # Update dependencies
npm run start:dev           # Check development execution
npm run format              # Format code
npm run check               # Type-checking, astro check and linters
npm run test:units:cov      # Run all unit tests
npm run build               # Run production build
npm run test:html           # Run HTML tests
npm run test:playwright:ui  # Run all Playwright tests
npm run start:prod          # Check production execution

โž• See more