Ghost/ghost/custom-theme-settings-service
Kevin Ansfield 2951da002c Added name argument to .activateTheme()
no issue

Ghost allows multiple themes with the same `name` value in `package.json` so it assigns custom names based on the file name. When syncing we were only looking at the package.json `name` value so there could be a syncing clash when swapping between active themes.

- added `name` as the first argument to `.activateTheme(name, theme)` so that the service's consumer is in control of settings sync applying to it's known theme name
2021-10-20 11:04:44 +01:00
..
lib Added name argument to .activateTheme() 2021-10-20 11:04:44 +01:00
test Added name argument to .activateTheme() 2021-10-20 11:04:44 +01:00
.eslintrc.js slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00
index.js First pass at custom-theme-settings-service functionality 2021-09-22 21:56:45 +01:00
LICENSE slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00
package.json Published new versions 2021-10-20 11:46:57 +02:00
README.md slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00

Custom Theme Settings Service

Install

npm install @tryghost/custom-theme-settings-service --save

or

yarn add @tryghost/custom-theme-settings-service

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.