From 50367fafeea51dd82623cef7c273043b56f06e74 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 21 Apr 2021 20:08:58 +0100 Subject: [PATCH] Moved theme engines to new theme engine service refs: https://github.com/TryGhost/Ghost/commit/bf0823c9a2ddbc93ad0ddcec36eed130c8c5a203 - continuing the work of splitting up the theme service into logical components --- .../services/{themes => theme-engine}/engines/create.js | 0 .../frontend/services/{themes => theme-engine}/engines/index.js | 0 core/frontend/services/themes/active.js | 2 +- .../services/{themes => theme-engine}/engines/create_spec.js | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename core/frontend/services/{themes => theme-engine}/engines/create.js (100%) rename core/frontend/services/{themes => theme-engine}/engines/index.js (100%) rename test/unit/services/{themes => theme-engine}/engines/create_spec.js (99%) diff --git a/core/frontend/services/themes/engines/create.js b/core/frontend/services/theme-engine/engines/create.js similarity index 100% rename from core/frontend/services/themes/engines/create.js rename to core/frontend/services/theme-engine/engines/create.js diff --git a/core/frontend/services/themes/engines/index.js b/core/frontend/services/theme-engine/engines/index.js similarity index 100% rename from core/frontend/services/themes/engines/index.js rename to core/frontend/services/theme-engine/engines/index.js diff --git a/core/frontend/services/themes/active.js b/core/frontend/services/themes/active.js index 3aabcc6821..f0c258ab36 100644 --- a/core/frontend/services/themes/active.js +++ b/core/frontend/services/themes/active.js @@ -15,7 +15,7 @@ const join = require('path').join; const _ = require('lodash'); const themeConfig = require('../theme-engine/config'); -const themeEngines = require('./engines'); +const themeEngines = require('../theme-engine/engines'); const config = require('../../../shared/config'); const engine = require('../theme-engine/engine'); diff --git a/test/unit/services/themes/engines/create_spec.js b/test/unit/services/theme-engine/engines/create_spec.js similarity index 99% rename from test/unit/services/themes/engines/create_spec.js rename to test/unit/services/theme-engine/engines/create_spec.js index cba461a07f..95c5d1712e 100644 --- a/test/unit/services/themes/engines/create_spec.js +++ b/test/unit/services/theme-engine/engines/create_spec.js @@ -1,6 +1,6 @@ const should = require('should'); const sinon = require('sinon'); -const themeEngines = require('../../../../../core/frontend/services/themes/engines'); +const themeEngines = require('../../../../../core/frontend/services/theme-engine/engines'); /** * @NOTE