(S)ophie's (S)tatic (S)ite (G)enerator
Go to file
2024-08-02 05:13:09 +03:00
src add compiletimejs 2024-08-02 05:13:09 +03:00
.gitignore first commit 2024-08-02 04:25:05 +03:00
bun.lockb first commit 2024-08-02 04:25:05 +03:00
package.json first commit 2024-08-02 04:25:05 +03:00
README.md oops 2024-08-02 04:27:26 +03:00
tsconfig.json first commit 2024-08-02 04:25:05 +03:00

(S)ophie's (S)tatic (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:

  1. rewrite and generate custom HTML/TS/JS/whatever..
  2. allow for variables and other important features in buildsystem->html
  3. plugins, this ties together the top two
  4. HMR and HTML/CSS reloading (in the Dev plugin)
  5. Rewriteable file renaming
  6. Every plugin runs on the same set of files, and can rename and reinject multiple times