Ghost/ghost/express-dynamic-redirects
Naz 08e2056f6c Extracted duplicate class initialization in test suite
refs https://github.com/TryGhost/Toolbox/issues/139

- The DynamicRedirectManager was initialized witht the same set of parameters throughout the test suite, so it made sense to initialize it once for all the tests. The sibiling describe block will have a similar setup for a redirects manager that has a subdirectory configured
2021-11-29 16:31:40 +04:00
..
lib Made options parameter optional 2021-11-29 16:08:03 +04:00
test Extracted duplicate class initialization in test suite 2021-11-29 16:31:40 +04:00
.eslintrc.js Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00
index.js Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00
LICENSE Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00
package.json Published new versions 2021-10-21 15:44:21 +02:00
README.md Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00

Express Dynamic Redirects

Install

npm install @tryghost/express-dynamic-redirects --save

or

yarn add @tryghost/express-dynamic-redirects

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