This website is built using Hugo and the Hugo Material theme.
-
Install dependencies:
npm install
-
Start the development server:
npm run serve
This will start a local server at
http://localhost:1313and watch for changes. -
Build the site for production (minified static files):
npm run build
This will generate a minified static site in the
publicdirectory. -
Serve the built static site locally:
npm run build:serve
This will serve the contents of the
publicdirectory athttp://localhost:3000(default port).
To develop locally, run the following command:
hugo serverThis will start a local server at http://localhost:1313 and watch for changes in the content and theme files.
To build the website for production, run the following command:
hugoThis will generate the static files in the public directory.
You can then commit the contents of the public directory.
npm testSnapshots are stored in test/__image_snapshots__ next to the test files. If the homepage changes visually, update the snapshots and review the diffs in test/__image_snapshots__/__diff_output__.
This project uses jest-image-snapshot and Puppeteer for visual regression testing of the homepage. Screenshots are generated when tests complete successfully and functionality is verified (the changes are confirmed).
npm run test:snap