src | ||
.gitignore | ||
bun.lockb | ||
package.json | ||
README.md | ||
tsconfig.json |
(S)ophie's (S)erver (S)ite (G)enerator
Usage
bun add git+https://git.sad.ovh/sophie/sssg
example
import SSSG from "sssg";
import Dev from "sssg/src/plugins/dev";
import TSCompiler from "sssg/src/plugins/ts-compiler";
import * as path from "path";
const sssg = new SSSG({
outputFolder: path.join(__dirname, "dist"),
inputFolder: path.join(__dirname, "website"),
});
await sssg.run({
plugins: [
new TSCompiler(),
new Dev(sssg),
],
});
await sssg.build();
design goals:
- rewrite and generate custom HTML/TS/JS/whatever..
- allow for variables and other important features in buildsystem->html
- plugins, this ties together the top two
- HMR and HTML/CSS reloading (in the Dev plugin)
- Rewriteable file renaming
- Every plugin runs on the same set of files, and can rename and reinject multiple times