oops
This commit is contained in:
parent
0ef48e85f0
commit
fe49539a2b
22
README.md
22
README.md
|
@ -3,6 +3,28 @@
|
||||||
## Usage
|
## Usage
|
||||||
`bun add git+https://git.sad.ovh/sophie/sssg`
|
`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:
|
## design goals:
|
||||||
1. rewrite and generate custom HTML/TS/JS/whatever..
|
1. rewrite and generate custom HTML/TS/JS/whatever..
|
||||||
|
|
Loading…
Reference in a new issue