Skip to content
A blog by Niko Heikkilä. Powered by coffee, VS Code, and Gatsby.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github docs: remove old issue template May 4, 2019
.vscode
cypress feat(tests): add automated test for robots.txt file May 12, 2019
nginx
src feat(css): add easing effect for theme changes May 12, 2019
.dockerignore feat(docker): improve container robustness and security Apr 22, 2019
.eslintignore fix: eslint warnings Apr 19, 2019
.eslintrc feat(tests): add Cypress automated tests May 7, 2019
.gitignore git: ignore drafts Apr 19, 2019
.nowignore
.travis.yml feat(travis): add caching to Cypress runs May 12, 2019
CODE_OF_CONDUCT.md
Dockerfile feat(docker): improve container robustness and security Apr 22, 2019
LICENSE-posts legal: separate licenses between website and posts Apr 19, 2019
LICENSE-website legal: separate licenses between website and posts Apr 19, 2019
README.md docs: add testing instructions and badges to README May 13, 2019
cypress.json feat(tests): record automated test runs May 12, 2019
docker-compose.yml feat(docker): improve container robustness and security Apr 22, 2019
gatsby-browser.js feat: add hamburger menu for static page content Apr 21, 2019
gatsby-config.js feat(js): load some defaults from gatsby-config.js for CLI script Apr 24, 2019
gatsby-node.js feat: migrate to blog starter template Apr 19, 2019
gatsby-ssr.js Initial commit from gatsby: (https://github.com/gatsbyjs/gatsby-start… Apr 6, 2019
new.js feat(js): load some defaults from gatsby-config.js for CLI script Apr 24, 2019
now.json feat(caching): add support for Now Full CDN functionality May 15, 2019
package.json feat(tests): record automated test runs May 12, 2019
yarn.lock feat(now): use serverless pre-rendering for site May 11, 2019

README.md

nikoheikkila.fi

My personal blog. Forked from Gatsby Blog Starter template and inspired here and there by Dan Abramov's blog.

Build Status Codacy Badge

Contributing

Content can be found under src/pages. Edit posts as needed and submit a PR for me to review. All PRs are automaticallly deployed by Now to staging area. Once approved and merged to master branch they will be deployed to production.

Other contributions to UI, accessibility, React components, security, dependency updates etc. are warmly welcome as well!

1. Build Locally with Yarn

To run the build locally, type like so:

yarn
yarn dev

2. Build Locally with Now

Alternatively, you can mimic the production environment from Now like so:

npm install -g now
now dev

This will download and execute a Now builder running the gatsby develop command. Be warned that this is a new feature with Now and might not work as expected. In case you encounter any problems, revert to option #1.

Finally, open http://localhost:8000 to view the blog.

Testing

Project is packaged with ESLint code style tests, Cypress automated tests, and Pa11y accessibility tests. They can be ran respectively like so:

yarn lint
yarn test:dev
yarn test:a11y

All of the above are also run in Travis CI pipelines for commits and PRs.

Writing

To quickly bootstrap a new post or page draft use the CLI tool new.js at project root either via yarn new or invoking directly.

You can’t perform that action at this time.