Setting up a new template project

Demo Superdesk Publisher themes use Gulp workflow automation (http://gulpjs.com/).

To set up a working environment for theme development based on an existing demo theme, you can follow these steps:

To start from scrach, you should know the theme structure:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ExampleTheme/               <=== Theme starts here
    views/                  <=== Views directory
        home.html.twig
    translations/           <=== Translations directory
        messages.en.xlf
        messages.de.xlf
    public/                 <=== Assets directory
        css/
        js/
        images/
    theme.json              <=== Theme configuration

This comes from SyliusThemeBundle, “Flexible theming system for Symfony applications”.

You may, if you wish, use Gulp to automate your workflow, or you can use some other system. For further information on this topic, see the chapter ‘Themes’.