up jam-my-stack 1.0.34: download to respective /static folder

This commit is contained in:
Wouter Groeneveld 2022-11-06 10:21:28 +01:00
parent ed0015e5fe
commit bfeb7f2b42
4 changed files with 7 additions and 5 deletions

View File

@ -3,7 +3,7 @@ title: "Alfred Chicken: a Tricky Nineties Euro Platformer"
date: 2022-05-30T11:23:00+02:00 date: 2022-05-30T11:23:00+02:00
score: 3 score: 3
howlongtobeat_id: 337 howlongtobeat_id: 337
howlongtobeat_hrs: 3 howlongtobeat_hrs: 2.9
game_name: 'Alfred Chicken' game_name: 'Alfred Chicken'
game_genre: '2D Platformer' game_genre: '2D Platformer'
game_release_year: 1993 game_release_year: 1993

View File

@ -1,6 +1,7 @@
const { howlongtobeat, webmention, youtube } = require('jam-my-stack');
const fsp = require('fs').promises; const fsp = require('fs').promises;
const { resolve } = require('path');
const { howlongtobeat, webmention, youtube } = require('jam-my-stack');
if(!process.env.WEBMENTION_TOKEN) { if(!process.env.WEBMENTION_TOKEN) {
throw "No webmention token set!" throw "No webmention token set!"
@ -11,14 +12,15 @@ const wmconfig = {
token: process.env.WEBMENTION_TOKEN token: process.env.WEBMENTION_TOKEN
}; };
const rootdir = `${__dirname}/../`; // If this isn't resolved, jam-my-stack will fail to replace 'content' with 'static' when downloading covers.
const rootdir = resolve(`${__dirname}/..`);
(async function() { (async function() {
// 1. get how long to beat times // 1. get how long to beat times
console.log("1. adding Howlongtobeat info...") console.log("1. adding Howlongtobeat info...")
await howlongtobeat.howlong({ await howlongtobeat.howlong({
postDir: `${rootdir}/content`, postDir: `${rootdir}/content`,
downloadDir: `${rootdir}/static/img/hltb` downloadDir: `${rootdir}/static`
}) })
// 2. get webmentions // 2. get webmentions

View File

@ -22,7 +22,7 @@
}, },
"homepage": "https://jefklakscodex.com", "homepage": "https://jefklakscodex.com",
"dependencies": { "dependencies": {
"jam-my-stack": "^1.0.33" "jam-my-stack": "^1.0.34"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.17.6", "@babel/cli": "^7.17.6",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB