Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A clear and concise description of what you expected to happen.
**Environment:**

- OS: [e.g. CachyOS, Arch Linux, macOS 15]
- Bun version: [e.g. 1.4.0]
- Bun version: [e.g. 1.4.4]
- Commit: [e.g. commit SHA]

**Additional context**
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
bun-version: 1.4.4

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugin-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
bun-version: 1.4.4
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Install Lua 5.4 (official plugin runtime baseline)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/registry-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
bun-version: 1.4.4
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Validate registry
Expand Down
20 changes: 0 additions & 20 deletions .markdownlint-cli2.jsonc

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierignore

This file was deleted.

3 changes: 1 addition & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"type-check": "tsc -p tsconfig.json --noEmit"
"type-check": "bun check --no-script -p tsconfig.json"
},
"devDependencies": {
"@types/node": "26.5.1",
"typescript": "5.7.2",
"vite": "8.3.0"
}
}
42 changes: 10 additions & 32 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions commitlint.config.ts

This file was deleted.

50 changes: 14 additions & 36 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,29 @@
# Bitty Plugins quality gates.
#
# Tool version pins live here (one place); installed dev dependencies are
# pinned in package.json + bun.lock. All JavaScript tooling runs through
# bun / bunx; never use npm, npx, or yarn, and never invoke formatters or
# linters directly by name.

markdownlint_pin := "0.23.1"
prettier_pin := "3.9.6"
commitlint_pin := "21.2.2"
lefthook_pin := "2.1.10"
# All JavaScript and TypeScript gates run natively through Bun 1.4.4 (`bun fmt`,
# `bun check`, `bun test`).

wrangler_pin := "4.125.0"

# List available recipes.
default:
@just --list

# Lint all Markdown sources against .markdownlint-cli2.jsonc.
lint:
bunx --bun markdownlint-cli2@{{markdownlint_pin}}

# Lint specific Markdown files (used by the pre-commit hook).
lint-files *files:
bunx --bun markdownlint-cli2@{{markdownlint_pin}} {{files}}

# Format all recognized files with Prettier.
# Format all recognized files with Bun's native formatter.
fmt:
bunx --bun prettier@{{prettier_pin}} --write . --ignore-unknown
bun fmt --no-script --no-config --ignore-unknown --ignore-pattern="generated/**" --ignore-pattern="sdk/**" --ignore-pattern="template/**"

# Check formatting of all recognized files with Prettier.
# Check formatting of all recognized files with Bun's native formatter.
fmt-check:
bunx --bun prettier@{{prettier_pin}} --check . --ignore-unknown
bun fmt --no-script --no-config --check --ignore-unknown --ignore-pattern="generated/**" --ignore-pattern="sdk/**" --ignore-pattern="template/**"

# Check formatting of specific files (used by the pre-commit hook).
fmt-check-files *files:
bunx --bun prettier@{{prettier_pin}} --check {{files}}
bun fmt --no-script --no-config --check --ignore-unknown --ignore-pattern="generated/**" --ignore-pattern="sdk/**" --ignore-pattern="template/**" {{files}}

# Type-check scripts/ and app/ with the TypeScript pinned in package.json.
# Type-check scripts/ and app/ with Bun's native TypeScript checker.
type-check:
bunx --bun tsc -p tsconfig.json --noEmit
bun check --no-script -p tsconfig.json
cd app && bun run type-check

# Run this repository's registry and tooling test suite (tests/ only;
Expand Down Expand Up @@ -85,18 +71,10 @@ app-dev:
app-preview: app-build
cd app && bun run preview

# Validate a commit message file with commitlint (conventional commits).
commit-check message=".git/COMMIT_EDITMSG":
test -d node_modules/@commitlint/config-conventional || bun install --frozen-lockfile
bunx --bun commitlint@{{commitlint_pin}} --edit "{{message}}"

# Install Git hooks managed by lefthook (opt-in per contributor checkout).
# Install Git hooks managed by lefthook and CarryCtx.
hooks-install:
bunx --bun lefthook@{{lefthook_pin}} install

# Remove lefthook-managed Git hooks.
hooks-uninstall:
bunx --bun lefthook@{{lefthook_pin}} uninstall
bun run lefthook install pre-commit
bun run carryctx hooks install --compose

# Lint GitHub Actions workflows with the locally installed actionlint.
# CI runs the same version as rhysd/actionlint:1.7.12 in a container.
Expand Down Expand Up @@ -160,7 +138,7 @@ integration-smoke:
exit "$status"

# Aggregate read-only gate run locally and in CI.
check: fmt-check lint type-check test registry-validate registry-check catalog-validate app-build
check: fmt-check type-check test registry-validate registry-check catalog-validate app-build

# Deploy the built store to Cloudflare Pages. Requires CLOUDFLARE_API_TOKEN and
# CLOUDFLARE_ACCOUNT_ID and a provisioned Pages project; dormant until then.
Expand Down
15 changes: 2 additions & 13 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Git hooks managed by lefthook. Install with `just hooks-install`.
# All tool pins live in the justfile; this file only wires hooks to it.

commit-msg:
commands:
commit-check:
run: just commit-check {1}

# Lefthook owns pre-commit; CarryCtx owns prepare-commit-msg and post-commit.
pre-commit:
commands:
markdownlint-staged:
glob: "*.md"
run: just lint-files {staged_files}
prettier-staged:
glob: "*.md"
format-check:
run: just fmt-check-files {staged_files}
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
],
"description": "Official plugin directory, registry, and store frontend for the Bitty ecosystem.",
"license": "MIT",
"packageManager": "bun@1.4.2",
"packageManager": "bun@1.4.4",
"scripts": {
"type-check": "tsc -p tsconfig.json --noEmit",
"type-check": "bun check --no-script -p tsconfig.json",
"test": "bun test"
},
"devDependencies": {
"@commitlint/config-conventional": "21.2.2",
"@types/bun": "1.2.0",
"bun-types": "1.2.0",
"carryctx": "0.11.5",
"typescript": "5.7.2"
"@types/bun": "1.4.4",
"carryctx": "0.11.6"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["ES2022"],
"types": ["bun-types"],
"types": ["bun"],
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": false,
Expand Down
Loading