feat: day generation

This commit is contained in:
mpaulson 2022-06-22 22:10:02 -06:00
parent dc0e0e0358
commit a87ff7c5aa
8 changed files with 28 additions and 31 deletions

28
scripts/clear Executable file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env node
const fs = require("fs");
const path = require("path");
const src_path = path.join(__dirname, "..", "src");
try {
fs.readdirSync(src_path).
filter(f => {
if (f.includes("day")) {
console.log("found", f);
return true;
}
console.log("ignoring", f);
return false;
}).
forEach(f => {
const file = path.join(src_path, f);
console.log("deleting", file);
fs.rmSync(file, {
recursive: true,
force: true,
});
});
} catch (e) { console.log(e); }