sawyerh / jekyll-boilerplate

Helpful files to get started working on a new Jekyll website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Creative Commons Zero v1.0 Universal


Languages

Language:Ruby 51.0%Language:JavaScript 34.2%Language:CSS 7.6%Language:HTML 7.2%