The personal website of Douglas James Anderson.
This repo expects a version of node as well as yarn installed. This README
assumes that fnm
is used (but there is
nothing wrong with other methods of installing node).
Download the repository and install dependencies:
git clone git@github.com/hockeybuggy/hockeybuggy.com.git
fnm use
corepack enable
yarn install
To write a new post start with:
./scripts/new_post
You can also use flags to set date or title
./scripts/new_post --title "great title" --date 2014-12-15
Generate and watch the site with:
./scripts/server
To simulate a production build locally:
yarn run build
cd public
python3 -m http.server 8888
cd -
To check the built site with an headless browser test:
./scripts/test
To check just one page:
./scripts/test landingPage
To view the tests running:
HEADLESS=false ./scripts/test
To view the tests running in slow motion:
SLOWMO=100 HEADLESS=false ./scripts/test
The tests will also run for every CI build. It will also upload the screenshots
it takes as artifacts. You can find the artifacts by clicking the ...
on a
workflow
and downloading the zip
file.
This site is hosted on Netlify. To deploy just push to the main branch on GitHub:
git push origin main