processDayone was failing if an inputZip wasn't provided. #23
Loading…
Reference in New Issue
No description provided.
Delete Branch "allow-reprocess-existing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@ -104,3 +110,3 @@
// now write the files out
execSync(`mkdir ${root}/tags`)
execSync(`mkdir -p ${root}/tags`)
fix two: add -p flag to not fail if a dir exists already
@ -37,11 +37,15 @@ const processedFrontmatterData = generatedDirs.reduce((links, dir) => {
const path = `${root}/${dir}`
const relativeUrl = `${dir}`
if (dir == 'tags') {
fix one: don't try to process the 'tags' dir as an entry
@ -42,3 +46,3 @@
if (!pathInfo.isDirectory()) {
console.log(`${path} is not a directory; ignoring`)
return
return links
whoops
@ -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) {
don't bother reprocessing images if the entries aren't fresh from a zip. instead assume we're reprocessing the markup for existing entries.
This code should move to immediately after unzipping dayone when we do #12