From 134e069c1ba290ecaa1db14230cff0698708d6b0 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 19 Mar 2020 15:23:10 +0000 Subject: [PATCH] Remove External Apps - Apps are marked as removed in 3.0, never officially launched and have been deprecated for at least 2 years. - We've slowly removed bits that got in our way or were insecure over time meaning they mostly didn't work - This cleans up the remainder of the logic - The tables should be cleaned up in a future major --- ghost/package-json/lib/filter.js | 6 +++--- ghost/package-json/lib/index.js | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ghost/package-json/lib/filter.js b/ghost/package-json/lib/filter.js index d9ac182049..c461599514 100644 --- a/ghost/package-json/lib/filter.js +++ b/ghost/package-json/lib/filter.js @@ -4,7 +4,7 @@ var _ = require('lodash'), /** * ### Filter Packages - * Normalizes packages read by read-packages so that the apps and themes modules can use them. + * Normalizes packages read by read-packages so that the themes module can use them. * Iterates over each package and return an array of objects which are simplified representations of the package * with 3 properties: * - `name` - the package name @@ -17,10 +17,10 @@ var _ = require('lodash'), * * @param {object} packages as returned by read-packages * @param {array/string} active as read from the settings object - * @returns {Array} of objects with useful info about apps / themes + * @returns {Array} of objects with useful info about themes */ filterPackages = function filterPackages(packages, active) { - // turn active into an array (so themes and apps can be checked the same) + // turn active into an array if it isn't one, so this function can deal with lists and one-offs if (!Array.isArray(active)) { active = [active]; } diff --git a/ghost/package-json/lib/index.js b/ghost/package-json/lib/index.js index 0f5a4c1bc5..cbc3cb022f 100644 --- a/ghost/package-json/lib/index.js +++ b/ghost/package-json/lib/index.js @@ -3,9 +3,7 @@ * * Ghost has / is in the process of gaining support for several different types of sub-packages: * - Themes: have always been packages, but we're going to lean more heavily on npm & package.json in future - * - Adapters: an early version of apps, replace fundamental pieces like storage, will become npm modules - * - Apps: plugins that can be installed whilst Ghost is running & modify behaviour - * - More? + * - Adapters: replace fundamental pieces like storage, will become npm modules * * These utils facilitate loading, reading, managing etc, packages from the file system. */