Skip to content
/ craft Public
forked from statikbe/craft

Craft CMS scaffolding package, for internal projects by Statik.be

License

Notifications You must be signed in to change notification settings

kareljan/craft

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craft CMS starter package by Statik.be

This a scaffolding package for Craft CMS, by Statik.be. We use this internally to start new projects.

Assumptions made

We assume a couple of things

  • We use Mandrill for email delivery.

  • We use TailwindCSS for our frontend build.

  • We don't use Craft's projectConfig, it is only enabled here so we can store settings in it for the scaffolding repo.


Usage

Use the following command to set up a new project:


composer create-project statikbe/craft PATH

Then install Craft:

cd PATH

./craft setup

Then run the Statik specific setup:

./craft statik/setup

This will give you the following options/ask you the following questions:

  • Do you want to set the system name for the site you're setting up?

  • Do you want to set the project code for the site you're setting up (we label projects by 6 letter code internally)?

  • Do you want to disable projectConfig? (default: yes)

  • Do you want to use Mandrill for email transport? (default: yes, will prompt you to entry an API key)

  • Do you want to add placeholder images? (default yes, will copy these images to public/files/test and run ./craft index-assets/all to add them to Craft's assets.)

  • Do you want to add dummy content? (default: yes, uses studioespresso/seeder to add dummy entries to all channels)

  • Do you want to initialize a git repository in the new project? (default: yes)

  • Do you want to add a remote?

  • Do you want to initiliaze git-flow? (default: yes)


Frontend Setup

We use tailwindscss and webpack.

  • webpack.config.js
  • tailwind.config.js

Getting started

yarn install

Afterwards you can build using

yarn dev

or

yarn watch

CSS and Javascript

tailoff/css and tailoff/js

Favicon Add an svg in tailoff/img/ called favicon.svg and run

yarn favicon

Icons Icons can be added inside tailoff/icons/ and after a build they will be available as a webfont. Example usage <span class="icon icon--{icon-name}" aria-hidden="true"></span>


Development

To work on this repo you can clone it like you would a regular project:


git clone [email protected]:statikbe/craft.git craft

To make sure the changes you make in the CMS can be commited, you'll have to add PROJECT_CONFIG="1" to your .env file.


Features & support

We'd love the hear your suggestions and review your pull requests, but keep in mind that is repo is for internal projects first.

About

Craft CMS scaffolding package, for internal projects by Statik.be

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Twig 39.6%
  • TypeScript 32.8%
  • CSS 9.8%
  • JavaScript 9.5%
  • PHP 7.4%
  • EJS 0.5%
  • Shell 0.4%