A starting point for creating new Craft projects.
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.
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
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
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
We don't include plugin files in the repo. That would also be ridiculous. So here is a list of the plugins used:
- Anchor
- Cachey, by Dust
- Contact Form, by Pixel & Tonic
- Email Wrap
- Field Manager, by Engram Design
- JSON Reader
- JSON Transforms
- Redirect Manager, by Roi Kingon
- Refresh String
- Sprout Fields, by Barrel Strength Design
- Typogrify, by Jamie Pittock