Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

sawyerh/jekyll-boilerplate

Repository files navigation

This repo includes a boilerplate for getting started working on a new Jekyll website, setup for GitHub Pages. It includes the following, which I tend to need on any site I work on:

  • Package management using NPM
  • ESLint + Stylelint
  • JS testing using Jest
  • Automatic code and Markdown formatting using Prettier
  • Git hooks using Husky
  • ES6 transpiling and bundling using Webpack and Babel
  • Sass transpiling and processing using PostCSS
  • Local server and live reloading using Browsersync

Prerequisites

  • Git - This boilerplate uses the github-pages gem, which expects a Git repo to be configured locally
  • Node 10.x +
  • Ruby 2.4.x +

Installation

npm install

Usage

Local development

Run a local Jekyll server and enjoy live reloading:

npm start

Building production-ready assets

To transpile and bundle Sass and JS, and build the site:

npm run build

Testing

npm test

About

Helpful files to get started working on a new Jekyll website

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published