A ready-to-use CI/CD Pipeline for your Bun projects.
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
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 .
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 |
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>
You can also use this pipeline programmatically:
import { test } from "jsr:@fluentci/bun"; await test();
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";