feat: build system

This commit is contained in:
2025-08-13 12:21:20 -06:00
parent 64af8e6d95
commit 2c59ce43ad
8 changed files with 290 additions and 47 deletions

View File

@@ -1,37 +1,37 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "none",
"semicolons": "asNeeded"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "none",
"semicolons": "asNeeded"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}

View File

@@ -1 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
export default { extends: ['@commitlint/config-conventional'] }

1
dist/index.css vendored Normal file
View File

@@ -0,0 +1 @@
.details{border:1px solid var(--color-neutral-6);background-color:var(--color-neutral-3);color:var(--color-neutral-12);border-radius:4px}.details[open] summary{background-color:var(--color-neutral-5)}.details>summary{cursor:pointer;padding:4px 8px;font-size:16px;font-weight:600;line-height:20px}.details>summary:hover{background-color:var(--color-neutral-4)}.details>div{padding:8px}:root{--color-neutral-1:#111113;--color-neutral-2:#18191b;--color-neutral-3:#212225;--color-neutral-4:#272a2d;--color-neutral-5:#2e3135;--color-neutral-6:#363a3f;--color-neutral-7:#43484e;--color-neutral-8:#5a6169;--color-neutral-9:#696e77;--color-neutral-10:#777b84;--color-neutral-11:#b0b4ba;--color-neutral-12:#edeef0;--color-primary-1:#13131e;--color-primary-2:#171625;--color-primary-3:#202248;--color-primary-4:#262a65;--color-primary-5:#303374;--color-primary-6:#3d3e82;--color-primary-7:#4a4a95;--color-primary-8:#5958b1;--color-primary-9:#5b5bd6;--color-primary-10:#6e6ade;--color-primary-11:#b1a9ff;--color-primary-12:#e0dffe}

235
dist/index.js vendored

File diff suppressed because one or more lines are too long

13
manifest.json Normal file
View File

@@ -0,0 +1,13 @@
{
"display_name": "St Randomness Helpers",
"loading_order": 1,
"requires": [],
"optional": [],
"dependencies": [],
"author": "Your name",
"version": "1.0.0",
"homePage": "",
"js": "dist/index.js",
"css": "dist/index.css",
"auto_update": true
}

View File

@@ -16,7 +16,7 @@
},
"scripts": {
"prepare": "husky",
"dev": "bun build --watch src/index.ts --outdir ./dist --target browser",
"build": "bun build src/index.ts --outdir ./dist --target browser"
"dev": "bun build --watch src/index.ts --outdir ./dist --target browser",
"build": "bun build src/index.ts --outdir ./dist --target browser --minify"
}
}

View File

@@ -24,7 +24,12 @@
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
"noPropertyAccessFromIndexSignature": false,
//Paths
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}

5
types/global.d.ts vendored
View File

@@ -1,6 +1,3 @@
export {}
import '../../../../../public/global'
declare global {
}
declare global {}