style: reformatted TypeScript code formatting and added benchmark reports
- Reformatted code indentation and spacing across multiple TypeScript files. - Standardized export statements to single-line format in various modules. - Fixed async/await precedence and corrected indentation in benchmark files. - Added benchmark report files for GPT-5.1-codex-mini model performance.
This commit is contained in:
@@ -13,15 +13,15 @@ const js = await Bun.file(`${dir}template.js`).text();
|
||||
|
||||
// Minify CSS
|
||||
const minifiedCss = css
|
||||
.replace(/\/\*[\s\S]*?\*\//g, "")
|
||||
.replace(/\s+/g, " ")
|
||||
.replace(/\s*([{}:;,])\s*/g, "$1")
|
||||
.trim();
|
||||
.replace(/\/\*[\s\S]*?\*\//g, "")
|
||||
.replace(/\s+/g, " ")
|
||||
.replace(/\s*([{}:;,])\s*/g, "$1")
|
||||
.trim();
|
||||
|
||||
// Inline everything
|
||||
const template = html
|
||||
.replace("<template-css/>", `<style>${minifiedCss}</style>`)
|
||||
.replace("<template-js/>", `<script>${js}</script>`);
|
||||
.replace("<template-css/>", `<style>${minifiedCss}</style>`)
|
||||
.replace("<template-js/>", `<script>${js}</script>`);
|
||||
|
||||
// Write generated file
|
||||
const output = `// Auto-generated by scripts/generate-template.ts - DO NOT EDIT
|
||||
|
||||
Reference in New Issue
Block a user