bun
Provides a set of functions for Bun projects
Installation
dagger install github.com/fluent-ci-templates/bun-pipeline@v0.6.13
Entrypoint
Return Type
Bun
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@da92f6180fb46018c29c6406a246de7061a2478d call \
func (m *myModule) example() *Bun {
return dag.
Bun()
}
@function
def example() -> dag.Bun:
return (
dag.bun()
)
@func()
example(): Bun {
return dag
.bun()
}
Types
Bun 🔗
test() 🔗
Run tests
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
bunVersion | String | "latest" | No description provided |
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@da92f6180fb46018c29c6406a246de7061a2478d call \
test
func (m *myModule) example(ctx context.Context) string {
return dag.
Bun().
Test(ctx)
}
@function
async def example() -> str:
return await (
dag.bun()
.test()
)
@func()
async example(): Promise<string> {
return dag
.bun()
.test()
}
run() 🔗
Run commands
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
command | String ! | - | No description provided |
src | Directory | - | No description provided |
bunVersion | String | "latest" | No description provided |
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@da92f6180fb46018c29c6406a246de7061a2478d call \
run --command string
func (m *myModule) example(ctx context.Context, command string) string {
return dag.
Bun().
Run(ctx, command)
}
@function
async def example(command: str) -> str:
return await (
dag.bun()
.run(command)
)
@func()
async example(command: string): Promise<string> {
return dag
.bun()
.run(command)
}
build() 🔗
Transpile and bundle one or more files
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
entrypoints | [String ! ] | ["index.ts"] | No description provided |
outfile | String | - | No description provided |
bunVersion | String | "latest" | No description provided |
target | String | - | No description provided |
compile | Boolean | false | No description provided |
outdir | String | - | No description provided |
sourcemap | String | - | No description provided |
minify | Boolean | false | No description provided |
minifySyntax | Boolean | false | No description provided |
minifyWhitespace | Boolean | false | No description provided |
minifyIdentifiers | Boolean | false | No description provided |
splitting | Boolean | false | No description provided |
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@da92f6180fb46018c29c6406a246de7061a2478d call \
build
func (m *myModule) example() *Directory {
return dag.
Bun().
Build()
}
@function
def example() -> dagger.Directory:
return (
dag.bun()
.build()
)
@func()
example(): Directory {
return dag
.bun()
.build()
}