Hawkings.me is my personal website built with Astro and deployed to Cloudflare Workers
-
Clone the repository
git clone https://github.com/ajhawkings/hawkings.me
-
Install nvm or nvm-windows
-
Install the latest LTS version of Node.js:
# MacOS/Linux nvm use # Windows nvm install lts nvm use lts
-
Install pnpm globally (see pnpm.io/installation) - e.g. for MacOS:
brew install pnpm
-
Install the packages in the cloned directory:
pnpm install
VS Code is recommended. Please install the recommended extensions (in vscode/extensions.json)
Please sort imports alphabetically, in three groups separated by new lines:
- TS functions/data
- JSX Components
- Type definitions
This project uses Playwright for end-to-end testing.
# Run tests in headless mode
pnpm test
# Run tests in UI mode (interactive)
pnpm test:ui
# View HTML test report
pnpm test:reportTests are located in the tests/ directory. Each test file should be named with the .spec.ts extension.
The test configuration is in playwright.config.ts. The tests will automatically start the dev server before running.