Ghost/ghost/importer-handler-content-files
Naz 831a76505c
Fixed root zip image/media/files copying during import
https://github.com/TryGhost/Toolbox/issues/523

- During import process of content files the files from the root directory were also copied over. This is causing chaos in the root of content folder with files that only needed for data import. For example, the csv files needed for Revue import were also copied over by "file importer" even though those do not belong to any content.
- Any content import files - images, media, files, should be in according folders in the imported zip file. The root files in the base zip directory are for data-related imports
2023-03-08 11:03:47 +08:00
..
lib Refactored importer's content file handler 2023-03-02 17:54:19 +08:00
test Fixed root zip image/media/files copying during import 2023-03-08 11:03:47 +08:00
.eslintrc.js Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00
index.js Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00
package.json Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00
README.md Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00

Importer Media

Importer content file handler

Usage

Develop

This is a monorepo package.

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.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests