mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
cf9cee0208
refs https://github.com/TryGhost/Team/issues/1070 - added `bread` util that acts as a wrapper for the provided model, if we have any business functionality needed when settings are added/removed then it will go here - added primary "server" service that handles syncing of custom theme data extracted from a theme with the settings that are in the database and exported as "Service". Syncing rules on theme activation: - if a new setting is seen, create it with the default value - if a setting has it's type changed, remove it and create a new setting with the default value - if a select setting's value is not a valid option, reset it to the default value - added shared "frontend/server" service that exposes an in-memory cache of key/value pairs for the currently active theme
32 lines
766 B
JSON
32 lines
766 B
JSON
{
|
|
"name": "@tryghost/custom-theme-settings-service",
|
|
"version": "0.0.0",
|
|
"repository": "https://github.com/TryGhost/Publishing/tree/main/packages/custom-theme-settings-service",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test": "NODE_ENV=testing c8 --check-coverage mocha './test/**/*.test.js'",
|
|
"lint": "eslint . --ext .js --cache",
|
|
"posttest": "yarn lint"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"c8": "7.9.0",
|
|
"mocha": "9.1.1",
|
|
"should": "13.2.3",
|
|
"sinon": "11.1.2"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/debug": "^0.1.5",
|
|
"@tryghost/errors": "^0.2.14"
|
|
}
|
|
}
|