Scaffold project structure

Setup vcs, editor, language, and package configs for a basic site
generator using TSX to build an html website.
This commit is contained in:
Hornwitser 2025-01-21 07:56:15 +01:00
commit 51b458103b
9 changed files with 121 additions and 0 deletions

9
cli.js Normal file
View file

@ -0,0 +1,9 @@
import { index } from "./build/node/index.js"
import * as fs from "node:fs"
if (!fs.existsSync("build/web")) {
fs.mkdirSync("build/web");
}
console.log("writing build/web/index.html");
fs.writeFileSync("build/web/index.html", index);