From fe49539a2bf7f292a31123c41428a2a4dcb4f85c Mon Sep 17 00:00:00 2001 From: sophie Date: Fri, 2 Aug 2024 04:25:27 +0300 Subject: [PATCH] oops --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index e9e30fc..0b8ebf4 100644 --- a/README.md +++ b/README.md @@ -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..