Skip to main content

Built and signed on GitHub Actions

🧩 A ready-to-use CI/CD Pipeline and jobs for Bun projects.

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
70%
Published
8 months ago (0.8.0)

Bun Pipeline

fluentci pipeline deno module deno compatibility dagger-min-version codecov ci

A ready-to-use CI/CD Pipeline for your Bun projects.

Made with VHS

🚀 Usage

Run the following command:

fluentci run bun_pipeline

Or, if you want to use it as a template:

fluentci init -t bun

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

fluentci run .

Or simply:

fluentci

🧩 Dagger Module

Use as a Dagger Module:

dagger install github.com/fluent-ci-templates/bun-pipeline@main

Call a function from the module:

dagger call build --src . \
  --compile \
  --outfile example \
  --entrypoints index.ts

dagger call test --src .

dagger call run --command build --src .

🛠️ Environment variables

Variable Description
NODE_VERSION The Node.js version to use. Defaults to 18.16.1
BUN_VERSION The Bun version to use. Defaults to latest

✨ Jobs

Job Description
build Transpile and bundle one or more files
run Run a command
test Run the tests
build(
  src: string | Directory | undefined = ".",
  entrypoints: string[] = ["index.ts"],
  outfile?: string,
  bunVersion: string = "latest",
  target?: string,
  compile: boolean = false,
  outdir?: string,
  sourcemap?: string,
  minify: boolean = false,
  minifySyntax: boolean = false,
  minifyWhitespace: boolean = false,
  minifyIdentifiers: boolean = false,
  splitting: boolean = false
): Promise<Directory | string>

run(
  command: string,
  src: string | Directory | undefined = ".",
  bunVersion: string = "latest"
): Promise<string>

test(
  src: string | Directory | undefined = ".",
  bunVersion: string = "latest"
): Promise<string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { test } from "jsr:@fluentci/bun";

await test();
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@fluentci/bun

Import symbol

import * as bun from "@fluentci/bun";

---- OR ----

Import directly with a jsr specifier

import * as bun from "jsr:@fluentci/bun";

Add Package

npx jsr add @fluentci/bun

Import symbol

import * as bun from "@fluentci/bun";

Add Package

yarn dlx jsr add @fluentci/bun

Import symbol

import * as bun from "@fluentci/bun";

Add Package

pnpm dlx jsr add @fluentci/bun

Import symbol

import * as bun from "@fluentci/bun";

Add Package

bunx jsr add @fluentci/bun

Import symbol

import * as bun from "@fluentci/bun";