Ghost/ghost/constants
Naz a986da8aa8 Added images and media prefixes
refs https://linear.app/tryghost/issue/CORE-121/create-a-video-storage-adapter

- These paths are a bit painful to discover in URL utils and don't really have to live there. They should be used instead of the onse in @tryghost/url-utils
- the STATIC_IMAGES_URL_PREFIX comes form ef9ab5bd9e/packages/url-utils/lib/index.js (L37)
- the STATIC_MEDIA_URL_PREFIX is a new concept introduced for experimental "video" file support
2021-10-22 15:59:10 +04:00
..
test Created @tryghost/constants package 2020-08-11 12:24:16 +01:00
.eslintrc.js Created @tryghost/constants package 2020-08-11 12:24:16 +01:00
index.js Added images and media prefixes 2021-10-22 15:59:10 +04:00
LICENSE 2021 2021-01-25 16:20:43 +00:00
package.json Added codecov.io coverage uploader to CI 2021-10-20 11:56:20 +02:00
README.md 2021 2021-01-25 16:20:43 +00:00

Constants

Install

npm install @tryghost/constants --save

or

yarn add @tryghost/constants

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.