This commit is contained in:
Soph :3 2024-08-02 04:25:27 +03:00
parent 0ef48e85f0
commit fe49539a2b
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

@ -3,6 +3,28 @@
## Usage
`bun add git+https://git.sad.ovh/sophie/sssg`
## example
```ts
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..