deno
This module provides a set of functions to run common tasks for Deno projects 🦕
Installation
dagger install github.com/fluent-ci-templates/deno-pipeline@v0.10.3Entrypoint
Return Type
Deno Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
func (m *MyModule) Example() *dagger.Deno {
return dag.
Deno()
}@function
def example() -> dagger.Deno:
return (
dag.deno()
)@func()
example(): Deno {
return dag
.deno()
}Types
Deno 🔗
lint() 🔗
Lint your code
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
lintfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Deno().
Lint()
}@function
def example() -> dagger.Directory:
return (
dag.deno()
.lint()
)@func()
example(): Directory {
return dag
.deno()
.lint()
}fmt() 🔗
Format your code
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
fmtfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Deno().
Fmt()
}@function
def example() -> dagger.Directory:
return (
dag.deno()
.fmt()
)@func()
example(): Directory {
return dag
.deno()
.fmt()
}test() 🔗
Run your tests
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
| ignore | [String ! ] | [] | No description provided |
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
testfunc (m *MyModule) Example() *dagger.File {
return dag.
Deno().
Test()
}@function
def example() -> dagger.File:
return (
dag.deno()
.test()
)@func()
example(): File {
return dag
.deno()
.test()
}compile() 🔗
Compile your code
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
| file | String | "main.ts" | No description provided |
| outputBinary | String | "main" | No description provided |
| target | String | "x86_64-unknown-linux-gnu" | No description provided |
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
compilefunc (m *MyModule) Example() *dagger.File {
return dag.
Deno().
Compile()
}@function
def example() -> dagger.File:
return (
dag.deno()
.compile()
)@func()
example(): File {
return dag
.deno()
.compile()
}deploy() 🔗
Deploy your code to Deno Deploy
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
| token | Secret | - | No description provided |
| project | String | - | No description provided |
| main | String | - | No description provided |
| noStatic | Boolean | - | No description provided |
| excludeOpt | String | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
deployfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Deno().
Deploy(ctx)
}@function
async def example() -> str:
return await (
dag.deno()
.deploy()
)@func()
async example(): Promise<string> {
return dag
.deno()
.deploy()
}