Ghost theme development environment
This is the blog post accompanying this project.
Creating a new theme
The first thing you need to do is to install this script with
npm install -g ghothede.
Now just run it with
You will be asked a few questions.
The script will now create the necessary files into the specified output folder (default is
cd into to that folder (
cd output) and run
docker-compose up -d. This will start the Ghost container in the background.
Your instance will be available at
$PORT is the one you specified during the questions.
Finish the setup, start the development server as explained below and activate your theme.
Now everything is set up. Happy coding.
Developing the theme
Inside the created folder you need to run
npm install to install all node dependencies and then start the development gulp script with either
npm run start or
All the files for theme are located under
CSS and JS files should be put under
For more info on theme development head over to the official docs.