Craft Core

A starting point for creating new Craft projects.

What is this?

Craft Core is a sort of boilerplate for new Craft projects. Unlike the old Craft Boilerplate, here the core templates and styles are separate from the rest of the templates and styles. This should reduce the amount of horrible conflicts you've got to deal with when pulling the latest changes from Craft Core into your project.

What's in the box?

Getting Started

Things you need to have.

This Core is Nodey, Gulpy, and SASSy. So make sure you have them

brew install yarn
yarn global add gulp-cli
sudo gem install sass

Using this Core

To create a new Craft project based on this Core, create your repo and add Craft Core as a remote,

git remote add core https://github.com/mijewe/craft-core.git

pull in the contents,

git pull core master

and then make sure you can't push up to the core, as that may well break everything.

git remote set-url --push core no_push

Setting Up

Your site is built with Craft, but the Craft source files are not included with this repo. That would be ridiculous. Don't worry about installing Craft though, as that's done for you with the gulp init:app task.

We compile all our assets using Gulp. So first run yarn && yarn upgrade to install the node modules, gulp init to install Craft, and then gulp build to generate all the assets.

yarn && yarn upgrade && gulp init && gulp build

Plugins we use in this project

We don't include plugin files in the repo. That would also be ridiculous. So here is a list of the plugins used: