Dagger
Search

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.3

Entrypoint

Return Type
Deno
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
func (m *myModule) example() *Deno  {
	return dag.
			Deno()
}
@function
def example() -> dag.Deno:
	return (
		dag.deno()
	)
@func()
example(): Deno {
	return dag
		.deno()
}

Types

Deno 🔗

lint() 🔗

Lint your code

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
 lint
func (m *myModule) example() *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
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
 fmt
func (m *myModule) example() *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
NameTypeDefault ValueDescription
srcDirectory -No description provided
ignore[String ! ] []No description provided
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
 test
func (m *myModule) example() *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
NameTypeDefault ValueDescription
srcDirectory -No description provided
fileString "main.ts"No description provided
outputBinaryString "main"No description provided
targetString "x86_64-unknown-linux-gnu"No description provided
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
 compile
func (m *myModule) example() *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
NameTypeDefault ValueDescription
srcDirectory -No description provided
tokenSecret -No description provided
projectString -No description provided
mainString -No description provided
noStaticBoolean -No description provided
excludeOptString -No description provided
Example
dagger -m github.com/fluent-ci-templates/deno-pipeline@41dc597444cb57e6134c6fa018c8da25c9666dab call \
 deploy
func (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()
}