Exports articles, pages and images from Xelif, our custom-built Twill-based CMS for importing into Ghost.
Create a file called mysql-config.json
in the same directory as this README
file. The content should look something
like this, amended with credentials as appropriate.
{
"host": "127.0.0.1",
"port": 3306,
"user": "username",
"password": "password",
"database": "laravel"
}
Install the required dependencies with
yarn
Run the program with
yarn build && node build/index.js
Use prettier
to format TypeScript files
npx prettier --write src/lib/*.ts src/*.ts