Skip to content

sunlight-cms/skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SunLight CMS skeleton

This is a SunLight CMS template project.

You can create a new project using the Composer's create-project command:

composer create-project sunlight-cms/skeleton my-website

This will create a "my-website" directory with all of the required files inside.

This project contains preconfigured sunlight-cms/console which is used to maintain the CMS files.

  • CMS files are downloaded automatically after you run composer install or composer update
  • the console reads configuration from your project's composer.json
  • see sunlight-cms/console documentation for a list of all available commands and options

There is a default .gitignore file that ignores most of the CMS files.

The idea is to commit only your templates and/or plugins and rely on the console to maintain the CMS files.

When a new project is created, the latest 8.x version of SunLight CMS is downloaded. That version is then set into cms.version.

If you wish to upgrade to a newer version, you can apply patches using the bin/console cms.patch command. This will also update cms.version in composer.json.

If you just want to overwrite the CMS files with a different version, you can edit cms.version manually and then run bin/console cms.download --overwrite. Note that doing this will not patch your database or perform any other updates.