Compare commits

...

11 Commits

Author SHA1 Message Date
1dbdb5c27b chore: update biome to 2.2.4
All checks were successful
Run tests / test (push) Successful in 1m13s
Code quality / quality (push) Successful in 1m14s
2025-09-16 11:40:22 +02:00
63a807095a chore: add github actions
All checks were successful
Run tests / test (push) Successful in 1m11s
Code quality / quality (push) Successful in 1m23s
2025-09-10 08:33:19 +02:00
f4f0f2d183 chore: use latest bun version in actions
All checks were successful
Run tests / test (push) Successful in 11s
Code quality / quality (push) Successful in 26s
2025-09-09 08:54:43 +02:00
40c6e0d407 fix: fix preload config
All checks were successful
Code quality / quality (push) Successful in 10s
Run tests / test (push) Successful in 23s
2025-09-05 08:21:47 +02:00
98ab0a982f chore: update index.ts file
Some checks failed
Code quality / quality (push) Successful in 1m25s
Run tests / test (push) Failing after 24s
2025-09-05 08:16:26 +02:00
a8faa1e43a chore: add bunfig.toml file 2025-09-05 08:15:18 +02:00
3e30f819f5 chore: update test workflow 2025-09-05 08:15:04 +02:00
a04c755bfa chore: update check quality workflow
All checks were successful
Code quality / quality (push) Successful in 10s
Run tests / test (push) Successful in 9s
2025-09-03 15:38:48 +02:00
1918f61c75 chore: add biomejs
Some checks failed
Code quality / quality (push) Failing after 14s
Run tests / test (push) Successful in 10s
2025-09-03 15:31:55 +02:00
8168f5ce12 chore: update tests workflow 2025-09-03 15:27:10 +02:00
66404acf46 chore: add CHANGELOG.md file 2025-09-03 15:26:58 +02:00
11 changed files with 147 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
name: Code quality
on:
push:
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run Biome
run: bunx biome ci .

View File

@@ -2,17 +2,20 @@ name: Run tests
on:
push:
jobs:
build:
name: build-app
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check out repository code
uses: actions/checkout@v5
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test

21
.github/workflows/code-quality.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Code quality
on:
push:
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run Biome
run: bunx biome ci .

21
.github/workflows/run-tests.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Run tests
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test

6
CHANGELOG.md Normal file
View File

@@ -0,0 +1,6 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

34
biome.json Normal file
View File

@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}

View File

@@ -4,6 +4,7 @@
"": {
"name": "tsproj",
"devDependencies": {
"@biomejs/biome": "2.2.4",
"@types/bun": "latest",
},
"peerDependencies": {
@@ -12,6 +13,24 @@
},
},
"packages": {
"@biomejs/biome": ["@biomejs/biome@2.2.4", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.2.4", "@biomejs/cli-darwin-x64": "2.2.4", "@biomejs/cli-linux-arm64": "2.2.4", "@biomejs/cli-linux-arm64-musl": "2.2.4", "@biomejs/cli-linux-x64": "2.2.4", "@biomejs/cli-linux-x64-musl": "2.2.4", "@biomejs/cli-win32-arm64": "2.2.4", "@biomejs/cli-win32-x64": "2.2.4" }, "bin": { "biome": "bin/biome" } }, "sha512-TBHU5bUy/Ok6m8c0y3pZiuO/BZoY/OcGxoLlrfQof5s8ISVwbVBdFINPQZyFfKwil8XibYWb7JMwnT8wT4WVPg=="],
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.2.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RJe2uiyaloN4hne4d2+qVj3d3gFJFbmrr5PYtkkjei1O9c+BjGXgpUPVbi8Pl8syumhzJjFsSIYkcLt2VlVLMA=="],
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.2.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-cFsdB4ePanVWfTnPVaUX+yr8qV8ifxjBKMkZwN7gKb20qXPxd/PmwqUH8mY5wnM9+U0QwM76CxFyBRJhC9tQwg=="],
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.2.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-M/Iz48p4NAzMXOuH+tsn5BvG/Jb07KOMTdSVwJpicmhN309BeEyRyQX+n1XDF0JVSlu28+hiTQ2L4rZPvu7nMw=="],
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.2.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-7TNPkMQEWfjvJDaZRSkDCPT/2r5ESFPKx+TEev+I2BXDGIjfCZk2+b88FOhnJNHtksbOZv8ZWnxrA5gyTYhSsQ=="],
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.2.4", "", { "os": "linux", "cpu": "x64" }, "sha512-orr3nnf2Dpb2ssl6aihQtvcKtLySLta4E2UcXdp7+RTa7mfJjBgIsbS0B9GC8gVu0hjOu021aU8b3/I1tn+pVQ=="],
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.2.4", "", { "os": "linux", "cpu": "x64" }, "sha512-m41nFDS0ksXK2gwXL6W6yZTYPMH0LughqbsxInSKetoH6morVj43szqKx79Iudkp8WRT5SxSh7qVb8KCUiewGg=="],
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.2.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-NXnfTeKHDFUWfxAefa57DiGmu9VyKi0cDqFpdI+1hJWQjGJhJutHPX0b5m+eXvTKOaf+brU+P0JrQAZMb5yYaQ=="],
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.2.4", "", { "os": "win32", "cpu": "x64" }, "sha512-3Y4V4zVRarVh/B/eSHczR4LYoSVyv3Dfuvm3cWs5w/HScccS0+Wt/lHOcDTRYeHjQmMYVC3rIRWqyN2EI52+zg=="],
"@types/bun": ["@types/bun@1.2.21", "", { "dependencies": { "bun-types": "1.2.21" } }, "sha512-NiDnvEqmbfQ6dmZ3EeUO577s4P5bf4HCTXtI6trMc6f6RzirY5IrF3aIookuSpyslFzrnvv2lmEWv5HyC1X79A=="],
"@types/node": ["@types/node@24.3.0", "", { "dependencies": { "undici-types": "~7.10.0" } }, "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow=="],

10
bunfig.toml Normal file
View File

@@ -0,0 +1,10 @@
preload = [""]
[define]
[test]
preload = [""]
root = "./tests"
[install]

View File

@@ -4,6 +4,7 @@
"type": "module",
"private": true,
"devDependencies": {
"@biomejs/biome": "2.2.4",
"@types/bun": "latest"
},
"peerDependencies": {

View File

@@ -1 +1,5 @@
console.log("Hello via Bun!");
async function main() {}
if (import.meta.main) {
await main();
}

View File

@@ -1,5 +1,5 @@
import { expect, test } from "bun:test";
test("assert the truth", () => {
expect(true).toBe(true);
});
expect(true).toBe(true);
});