Ghost/core/server/apps
Hannah Wolfe c70fbc2c7e 🎨 Collect & simplify package utils (#8080)
closes #8056

🎨 Collect together the package-related utils
- read directory actually reads a directory of packages
- parse package json is very tighly related to this

🎨 Move filterPaths -> packages.filterPackages
- this function is related to packages, not settings
- move the function to the new utils/packages
- add 100% test coverage

🎨 Simplify filterPackages code
🎨 Simplify reading of packages & themes
- This massively reduces all the complex code in the read packages & themes utils
- Added full test coverage

🎨 Improve & clarify active prop in filterPackages
- active is returned from API endpoints to combine data from multiple sources
- see https://github.com/TryGhost/Ghost/pull/8064#discussion_r103514810

🎨 Better error handling
🔥 Temporarily remove custom error templates
- we will reimplement this later when we have got a better concept of loading the active theme in place
- refs #8079
2017-03-01 14:09:31 +01:00
..
amp 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
private-blogging New buttons 🎨 (#8007) 2017-02-16 19:52:32 +00:00
subscribers New buttons 🎨 (#8007) 2017-02-16 19:52:32 +00:00
dependencies.js Replace fs.exists (deprecated) with fs.stat 2015-03-17 11:49:43 -07:00
index.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
loader.js 🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling) 2016-09-20 15:59:34 +01:00
permissions.js 🎨 Collect & simplify package utils (#8080) 2017-03-01 14:09:31 +01:00
proxy.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
sandbox.js 🔥 remove postgres support 2016-09-20 15:59:34 +01:00