Skill Market

bun runtime

ランタイムとしてのBun、パッケージマネージャー、バンドラー、テストランナー。Bun対Nodeを選択する場合、移行メモ、Vercelサポート。

GitHub
githubcommunity
0.0
0 installs262.1K GitHub starsby affaan-m

Skill Introduction

Overview
ランタイムとしてのBun、パッケージマネージャー、バンドラー、テストランナー。Bun対Nodeを選択する場合、移行メモ、Vercelサポート。

Core value

Turns reusable Testing know-how into an installable skill, helping users complete github, community work faster.

Target users

  • Developers, testers, and maintainers who handle Testing tasks in Focus Code.
  • Teams that already trust workflows or content from affaan-m.
  • Users who want standardized prompts, steps, or conventions instead of repeating setup work.

Best practices

  • Read the skill content first to confirm required inputs, expected outputs, and dependencies.
  • Try it on a small task before relying on it for critical work.
  • Add project-specific constraints such as coding style, target platform, test expectations, and delivery format.
  • For external sources, verify the source link, version, and recent maintenance activity.

Best use cases

  • Tasks related to github, community that need a reusable execution flow.
  • Converting a community repo, team convention, or personal workflow into day-to-day assistance.
  • Starting from a proven skill instead of writing prompts or procedures from scratch.

Limits and boundaries

  • Results depend on the quality of the original skill content and may need human correction.
  • It does not replace code review, tests, security review, or professional judgment.
  • External tools, APIs, account permissions, and local dependencies still need separate setup.

Differentiation

  • Structured around Testing, making it easier to discover and reuse than loose prompt snippets.
  • Marked as GitHub, which helps users judge trust and maintenance expectations.
  • Keeps the original source link available for repository, documentation, or discussion follow-up.
  • Tagged with github, community, so it can be filtered by concrete task intent.

Install and use

Install
Copy Install Command
focus install bun-runtime-50ae60
View source

Detail Preview

SKILL.md

Primary filemarkdown4 KB

name: bun-runtime description: ランタイムとしてのBun、パッケージマネージャー、バンドラー、テストランナー。Bun対Nodeを選択する場合、移行メモ、Vercelサポート。 origin: ECC

Bunランタイム

Bunは高速なオールインワンJavaScriptランタイムとツールキット:ランタイム、パッケージマネージャー、バンドラー、テストランナー。

使用時期

  • Bunを好む:新しいJS/TSプロジェクト、インストール/実行速度が重要なスクリプト、Bunランタイムでのデプロイメント、単一のツールチェーン(実行+インストール+テスト+ビルド)が必要な場合。
  • Nodeを好む:最大のエコシステム互換性、ノードを仮定するレガシーツール、またはある依存関係が既知のBun問題がある場合。

使用時期:Bunを採用、Nodeから移行、Bunスクリプト/テストを書いたりデバッグしたり、Vercelまたは他のプラットフォームでBunを構成する場合。

動作方法

  • ランタイム:ドロップイン互換のNodeランタイム(JavaScriptCoreで構築、Zigで実装)。
  • パッケージマネージャー:bun installはnpm/yarnよりも大幅に高速です。ロックファイルはbun.lock(テキスト)(デフォルト)。古いバージョンはbun.lockb(バイナリ)を使用しました。
  • バンドラー:アプリとライブラリ用の組み込みバンドラーとトランスパイラー。
  • テストランナー:Jest様のAPIを備えた組み込みbun test。

Nodeからの移行:node script.jsをbun run script.jsまたはbun script.jsに置き換えます。npm installの代わりにbun installを実行します。ほとんどのパッケージは機能します。npm スクリプトにはbun runを使用します。bun xをnpxスタイルの1回限りの実行に使用します。Nodeの組み込みはサポートされています。パフォーマンスの向上のため、Bunチャネルが存在する場合は優先。

Vercel:プロジェクト設定でBunに設定をランタイムに設定します。ビルド:bun run buildまたはbun build ./src/index.ts --outdir=dist。インストール:再現可能なデプロイの場合はbun install --frozen-lockfile。

例

実行とインストール

# 依存関係をインストール(bun.lockまたはbun.lockbを作成/更新)
bun install

# スクリプトまたはファイルを実行
bun run dev
bun run src/index.ts
bun src/index.ts

スクリプトとenv

bun run --env-file=.env dev
FOO=bar bun run script.ts

テスト

bun test
bun test --watch
// test/example.test.ts
import { expect, test } from "bun:test";

test("add", () => {
  expect(1 + 2).toBe(3);
});

常見の問題

  • bun installはnode_modulesを作成しますが、シンボリックリンクの多用により構造が異なります。
  • 古い依存関係にはBun互換性の問題がある可能性があります。Node にフォールバックする。
  • VercelでBun使用時は設定とビルドコマンドが必須。

Reviews

Overall rating

0.0
0.0

0 comments

No reviews yet