also looking at this
feat(stx): one-line stx integration (plugins: ['@stacksjs/ts-analytics']) + fix library build
#123
11 files
+331
-13
| @@ -0,0 +1,17 @@ | ||
| 1 | #!/usr/bin/env bun | |
| 2 | /** | |
| 3 | * Static dashboard SITE build (deploy artifact for Netlify / Vercel / S3 / | |
| 4 | * the lambda views) → dist-site/. This is NOT the npm package output — the | |
| 5 | * importable library is built by build.ts (`bun run build`) into dist/. | |
| 6 | * | |
| 7 | * Run with `bun run build:site`. | |
| 8 | */ | |
| 9 | import { generateStaticSite } from '@stacksjs/stx/ssg' | |
| 10 | ||
| 11 | await generateStaticSite({ | |
| 12 | pagesDir: 'pages', | |
| 13 | outputDir: 'dist-site', | |
| 14 | publicDir: 'public', | |
| 15 | sitemap: true, | |
| 16 | cleanOutput: true, | |
| 17 | }) | |