Skip to content

fluent-ci-templates/bun-pipeline

Repository files navigation

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();

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages