@maizzle/framework
Version:
Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.
16 lines (15 loc) • 532 B
JavaScript
import { mkdirSync, mkdtempSync, writeFileSync } from "node:fs";
import { join } from "node:path";
import { tmpdir } from "node:os";
//#region src/tests/render/_helpers.ts
function createTempProject() {
return mkdtempSync(join(tmpdir(), "maizzle-render-"));
}
function writeSfc(dir, path, content) {
const full = join(dir, path);
mkdirSync(join(dir, ...path.split("/").slice(0, -1)), { recursive: true });
writeFileSync(full, content);
}
//#endregion
export { createTempProject, writeSfc };
//# sourceMappingURL=_helpers.js.map