processDayone was failing if an inputZip wasn't provided. #23

Merged
mycrobe merged 1 commits from allow-reprocess-existing into main 2023-07-11 02:50:43 +00:00
Owner

This is minimal changes to allow updating all generated content without processing an input zip. It's a step toward #12, allowing iterative updates

Also, this will resolve #22

This is minimal changes to allow updating all generated content without processing an input zip. It's a step toward #12, allowing iterative updates Also, this will resolve #22
mycrobe added 1 commit 2023-07-11 02:47:38 +00:00
mycrobe reviewed 2023-07-11 02:49:01 +00:00
@ -104,3 +110,3 @@
// now write the files out
execSync(`mkdir ${root}/tags`)
execSync(`mkdir -p ${root}/tags`)
Author
Owner

fix two: add -p flag to not fail if a dir exists already

fix two: add -p flag to not fail if a dir exists already
mycrobe reviewed 2023-07-11 02:49:24 +00:00
@ -37,11 +37,15 @@ const processedFrontmatterData = generatedDirs.reduce((links, dir) => {
const path = `${root}/${dir}`
const relativeUrl = `${dir}`
if (dir == 'tags') {
Author
Owner

fix one: don't try to process the 'tags' dir as an entry

fix one: don't try to process the 'tags' dir as an entry
mycrobe reviewed 2023-07-11 02:49:30 +00:00
@ -42,3 +46,3 @@
if (!pathInfo.isDirectory()) {
console.log(`${path} is not a directory; ignoring`)
return
return links
Author
Owner

whoops

whoops
mycrobe reviewed 2023-07-11 02:50:14 +00:00
@ -58,2 +59,2 @@
execSync(`mogrify -auto-orient -resize 800x800 -strip '${path}/*.png[0]'`)
} catch (e) {
// clean up and resize the jpegs if loading from zip
if (inputZip) {
Author
Owner

don't bother reprocessing images if the entries aren't fresh from a zip. instead assume we're reprocessing the markup for existing entries.

don't bother reprocessing images if the entries aren't fresh from a zip. instead assume we're reprocessing the markup for existing entries.
Author
Owner

This code should move to immediately after unzipping dayone when we do #12

This code should move to immediately after unzipping dayone when we do #12
mycrobe merged commit b69f63994a into main 2023-07-11 02:50:43 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mycrobe/cmsetlbbq#23
No description provided.