A simple website that tells a bit more about me.
Find it on mathiasbosman.me.
A simple npm install
should be enough to get started.
Once dependencies are installed npm run dev
will spin up the website locally.
The terminal will tell you which local address is used.
For example:
VITE vx.x.x ready in 126 ms
➜ Local: http://localhost:9000/
➜ Network: use --host to expose
➜ press h to show help
main
branch contains the latest statemain
branchmain
branchEslint and Prettier are used to check (and fix) code style.
Run npm run lint
to run both eslint and Prettier checks.
To fix issues npm run lint:fix
can be used.
3 types of testing are active:
Unit and component tests are run on each push. In addition, end-2-end tests are run on pull requests.
Vitest is used for unit testing and can be run by running the below npm script:
npm run test:unit
Components are tested via Cypress:
npm run test:component
These are also run with Cypress. For end-2-end tests the application should be running.
npm run dev
npm run cy:ui
npm run build
npm run preview
npm run test:e2e
Note: there is a Cypress test that checks if outgoing links are reachable.
When running npm run test:e2e
this test will always run as part of the specs.
If you just want to run the application e2e tests run npm run test:e2e:app
The main branch will automatically be deployed via Vercel. Every pull request will deploy a preview app. Vercel will comment on the PR with the relevant links.
For other dependencies used check out the package.json file.