all repos — kushiyaki @ f4b397cf4191686ae7541fcd0986d611d9c7b0ca

🍢 A tiny static site generator for grilling markdown files to perfection

fix: unflipp order of cpy and emptydir
trickyni trickyniv56@gmail.com
Tue, 19 May 2026 14:38:32 +0300
commit

f4b397cf4191686ae7541fcd0986d611d9c7b0ca

parent

d019d6e5243a06b30be270d6d18c59a19e80b075

2 files changed, 1 insertions(+), 2 deletions(-)

jump to
M index.jsindex.js

@@ -16,8 +16,8 @@ import { emptyDir } from "fs-extra";

import cpy from "cpy"; import { glob } from "glob"; -await cpy(["input/**", "!input/**/*{.md,.jsx}"], "out", { flat: true }); //copies all the assets into out/ emptyDir("out", { recursive: true }); // clears the output folder +await cpy(["input/**", "!input/**/*{.md,.jsx}"], "out", { flat: true }); //copies all the assets into out/ const siteIndex = await createSiteIndex(); export async function kushiyaki(filepath) {
M insertJSX.jsinsertJSX.js

@@ -17,7 +17,6 @@ const fn = await import(`./input/templates/${x}.jsx`); //FIX avoid strict filestruct past "input"

tree.children.unshift(fn.default(data, siteIndex)); //TODO use select on "body" } } - if (data.after != undefined) { for (let x of [data.after].flat().reverse()) { const fn = await import(`./input/templates/${x}.jsx`); //FIX avoid strict filestruct past "input"