Skip to content

Commit ade7aab

Browse files
committed
chore: initial commit
1 parent 7079fb3 commit ade7aab

26 files changed

Lines changed: 1298 additions & 6296 deletions

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/bun.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/jsr.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish on JSR
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
Publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: denoland/setup-deno@v2
21+
with:
22+
deno-version: 2.x
23+
24+
- uses: actions/cache@v4
25+
name: Set up Deno cache
26+
with:
27+
path: |
28+
~/.deno
29+
~/.cache/deno
30+
key: ${{ runner.os }}-deno-${{ hashFiles('**/pnpm-lock.yaml') }}
31+
32+
- run: |
33+
deno install --no-lock --allow-scripts=npm:lefthook
34+
deno publish --dry-run
35+
deno publish

.github/workflows/node.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: 'Stale issues and PR'
1+
name: "Stale issues and PR"
22
on:
33
schedule:
4-
- cron: '30 1 * * *'
4+
- cron: "30 1 * * *"
55

66
jobs:
7-
stale:
7+
Stale:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/stale@v9
1111
with:
1212
stale-issue-label: stale
1313
stale-pr-label: stale
14-
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
15-
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
16-
close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity.'
17-
close-pr-message: 'This PR was closed because it has been stalled for 30 days with no activity.'
14+
stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days."
15+
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days."
16+
close-issue-message: "This issue was closed because it has been stalled for 30 days with no activity."
17+
close-pr-message: "This PR was closed because it has been stalled for 30 days with no activity."
1818
days-before-issue-stale: 60
1919
days-before-pr-stale: 60
2020
days-before-issue-close: 30
2121
days-before-pr-close: 30
22-
exempt-issue-labels: 'bug,enhancement,stale-exempt'
22+
exempt-issue-labels: "bug,enhancement,stale-exempt"

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/**"
7+
- "tests/**"
8+
- "bun.lockb"
9+
- "index.ts"
10+
- "package.json"
11+
- "tsconfig.json"
12+
pull_request:
13+
paths:
14+
- ".github/**"
15+
- "tests/**"
16+
- "bun.lockb"
17+
- "index.ts"
18+
- "package.json"
19+
- "tsconfig.json"
20+
workflow_dispatch:
21+
22+
jobs:
23+
Test:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
bun-version: ["1.0", "1.1", "1.2", "1.3"]
28+
29+
steps:
30+
- uses: actions/checkout@v5
31+
with:
32+
fetch-depth: 1
33+
34+
- uses: oven-sh/setup-bun@v2
35+
with:
36+
bun-version: ${{ matrix.bun-version }}
37+
38+
- name: Install dependencies
39+
run: bun install --frozen-lockfile
40+
41+
- name: Lint Source
42+
run: bunx biome ci
43+
44+
- name: Run Tests
45+
run: bun run test

.gitignore

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1+
# package manager
12
node_modules/
2-
bin/
3-
dist/
4-
lib/
5-
.eslintcache
6-
7-
# Development
3+
package-lock.json
4+
pnpm-lock.yaml
5+
yarn.lock
86

9-
# Test
10-
coverage/
11-
test-results/
7+
# build
8+
dist/
129

13-
# Project specific
14-
app.js
15-
test.ts
10+
# development
11+
playground/

.npmrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/extensions.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"recommendations": ["biomejs.biome", "editorconfig.editorconfig"]
2+
"recommendations": [
3+
"biomejs.biome",
4+
"editorconfig.editorconfig",
5+
"oven.bun-vscode",
6+
"tamasfe.even-better-toml"
7+
]
38
}

0 commit comments

Comments
 (0)