up jam-my-stack 1.0.34: download to respective /static folder
This commit is contained in:
parent
ed0015e5fe
commit
bfeb7f2b42
|
@ -3,7 +3,7 @@ title: "Alfred Chicken: a Tricky Nineties Euro Platformer"
|
|||
date: 2022-05-30T11:23:00+02:00
|
||||
score: 3
|
||||
howlongtobeat_id: 337
|
||||
howlongtobeat_hrs: 3
|
||||
howlongtobeat_hrs: 2.9
|
||||
game_name: 'Alfred Chicken'
|
||||
game_genre: '2D Platformer'
|
||||
game_release_year: 1993
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
const { howlongtobeat, webmention, youtube } = require('jam-my-stack');
|
||||
const fsp = require('fs').promises;
|
||||
const { resolve } = require('path');
|
||||
const { howlongtobeat, webmention, youtube } = require('jam-my-stack');
|
||||
|
||||
if(!process.env.WEBMENTION_TOKEN) {
|
||||
throw "No webmention token set!"
|
||||
|
@ -11,14 +12,15 @@ const wmconfig = {
|
|||
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() {
|
||||
// 1. get how long to beat times
|
||||
console.log("1. adding Howlongtobeat info...")
|
||||
await howlongtobeat.howlong({
|
||||
postDir: `${rootdir}/content`,
|
||||
downloadDir: `${rootdir}/static/img/hltb`
|
||||
downloadDir: `${rootdir}/static`
|
||||
})
|
||||
|
||||
// 2. get webmentions
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
},
|
||||
"homepage": "https://jefklakscodex.com",
|
||||
"dependencies": {
|
||||
"jam-my-stack": "^1.0.33"
|
||||
"jam-my-stack": "^1.0.34"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.17.6",
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Loading…
Reference in New Issue