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:
commit
51b458103b
9 changed files with 121 additions and 0 deletions
9
cli.js
Normal file
9
cli.js
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue