Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluent-ci-templates/bun-pipeline
A ready-to-use CI/CD Pipeline and jobs for Bun projects.
https://github.com/fluent-ci-templates/bun-pipeline
bun cicd dagger dagger-functions deno deno-module devops pipeline typescript
Last synced: about 6 hours ago
JSON representation
A ready-to-use CI/CD Pipeline and jobs for Bun projects.
- Host: GitHub
- URL: https://github.com/fluent-ci-templates/bun-pipeline
- Owner: fluent-ci-templates
- License: mit
- Created: 2023-07-04T17:16:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-11T16:00:55.000Z (3 months ago)
- Last Synced: 2024-08-12T17:23:57.840Z (3 months ago)
- Topics: bun, cicd, dagger, dagger-functions, deno, deno-module, devops, pipeline, typescript
- Language: TypeScript
- Homepage:
- Size: 266 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Bun Pipeline
[![fluentci pipeline](https://shield.fluentci.io/x/bun_pipeline)](https://pkg.fluentci.io/bun_pipeline)
[![deno module](https://shield.deno.dev/x/bun_pipeline)](https://deno.land/x/bun_pipeline)
![deno compatibility](https://shield.deno.dev/deno/^1.41)
[![dagger-min-version](https://shield.fluentci.io/dagger/v0.11.7)](https://dagger.io)
[![](https://jsr.io/badges/@fluentci/bun)](https://jsr.io/@fluentci/bun)
[![codecov](https://img.shields.io/codecov/c/gh/fluent-ci-templates/bun-pipeline)](https://codecov.io/gh/fluent-ci-templates/bun-pipeline)
[![ci](https://github.com/fluent-ci-templates/bun-pipeline/actions/workflows/ci.yml/badge.svg)](https://github.com/fluent-ci-templates/bun-pipeline/actions/workflows/ci.yml)A ready-to-use CI/CD Pipeline for your [Bun](https://bun.sh) projects.
![Made with VHS](https://vhs.charm.sh/vhs-2vYAlYsrKSytuEyoxMfYdg.gif)
## 🚀 Usage
Run the following command:
```bash
fluentci run bun_pipeline
```Or, if you want to use it as a template:
```bash
fluentci init -t bun
```This will create a `.fluentci` folder in your project.
Now you can run the pipeline with:
```bash
fluentci run .
```Or simply:
```bash
fluentci
```## 🧩 Dagger Module
Use as a [Dagger](https://dagger.io) Module:
```bash
dagger install github.com/fluent-ci-templates/bun-pipeline@main
```Call a function from the module:
```bash
dagger call build --src . \
--compile \
--outfile example \
--entrypoints index.tsdagger 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 |```typescript
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
): Promiserun(
command: string,
src: string | Directory | undefined = ".",
bunVersion: string = "latest"
): Promisetest(
src: string | Directory | undefined = ".",
bunVersion: string = "latest"
): Promise```
## 👨💻 Programmatic usage
You can also use this pipeline programmatically:
```ts
import { test } from "jsr:@fluentci/bun";await test();
```