Dagger
Search

node

No long description provided.

Installation

dagger install github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e

Entrypoint

Return Type
Node
Example
func (m *myModule) example() *Node  {
	return dag.
			Node()
}
@function
def example() -> dag.Node:
	return (
		dag.node()
	)
@func()
example(): Node {
	return dag
		.node()
}

Types

Node

ctr()

Return Type
Container !
Example
Function Node.ctr is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			Ctr()
}
@function
def example() -> :
	return (
		dag.node()
		.ctr()
	)
@func()
example():  {
	return dag
		.node()
		.ctr()
}

withVersion()

WithVersion returns Node container with given image version.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
versionStringKind !-No description provided
Example
Function Node.withVersion is not accessible from the node module
func (m *myModule) example(version )   {
	return dag.
			Node().
			WithVersion(version)
}
@function
def example(version: ) -> :
	return (
		dag.node()
		.with_version(version)
	)
@func()
example(version: ):  {
	return dag
		.node()
		.withVersion(version)
}

withContainer()

WithContainer returns Node container with the given container.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
Example
Function Node.withContainer is not accessible from the node module
func (m *myModule) example(ctr )   {
	return dag.
			Node().
			WithContainer(ctr)
}
@function
def example(ctr: ) -> :
	return (
		dag.node()
		.with_container(ctr)
	)
@func()
example(ctr: ):  {
	return dag
		.node()
		.withContainer(ctr)
}

container()

Container returns Node container.

Return Type
Container !
Example
Function Node.container is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			Container()
}
@function
def example() -> :
	return (
		dag.node()
		.container()
	)
@func()
example():  {
	return dag
		.node()
		.container()
}

withSource()

WithSource returns the Node container with source and cache set in it.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
Function Node.withSource is not accessible from the node module
func (m *myModule) example(source )   {
	return dag.
			Node().
			WithSource(source)
}
@function
def example(source: ) -> :
	return (
		dag.node()
		.with_source(source)
	)
@func()
example(source: ):  {
	return dag
		.node()
		.withSource(source)
}

withYarn()

WithYarn returns Node container with yarn configured as package manager.

Return Type
Node !
Example
Function Node.withYarn is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			WithYarn()
}
@function
def example() -> :
	return (
		dag.node()
		.with_yarn()
	)
@func()
example():  {
	return dag
		.node()
		.withYarn()
}

withNpm()

WithNpm returns Node container with npm configured as package manager.

Return Type
Node !
Example
Function Node.withNpm is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			WithNpm()
}
@function
def example() -> :
	return (
		dag.node()
		.with_npm()
	)
@func()
example():  {
	return dag
		.node()
		.withNpm()
}

run()

Run returns the container with the command set.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
Example
Function Node.run is not accessible from the node module
func (m *myModule) example(args )   {
	return dag.
			Node().
			Run(args)
}
@function
def example(args: ) -> :
	return (
		dag.node()
		.run(args)
	)
@func()
example(args: ):  {
	return dag
		.node()
		.run(args)
}

start()

Start returns the output of the code executed.

Return Type
StringKind !
Example
Function Node.start is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			Start()
}
@function
def example() -> :
	return (
		dag.node()
		.start()
	)
@func()
example():  {
	return dag
		.node()
		.start()
}

lint()

Lint returns the output of the lint command.

Return Type
StringKind !
Example
Function Node.lint is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			Lint()
}
@function
def example() -> :
	return (
		dag.node()
		.lint()
	)
@func()
example():  {
	return dag
		.node()
		.lint()
}

test()

Lint returns the output of the lint command.

Return Type
StringKind !
Example
Function Node.test is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			Test()
}
@function
def example() -> :
	return (
		dag.node()
		.test()
	)
@func()
example():  {
	return dag
		.node()
		.test()
}

build()

Build returns the Container with the source built.

Return Type
Node !
Example
Function Node.build is not accessible from the node module
func (m *myModule) example()   {
	return dag.
			Node().
			Build()
}
@function
def example() -> :
	return (
		dag.node()
		.build()
	)
@func()
example():  {
	return dag
		.node()
		.build()
}

publish()

Publish publishes the source code to npm registry.

Return Type
StringKind !
Arguments
NameTypeDefault ValueDescription
tokenSecretSecret !-No description provided
versionStringKind !-No description provided
accessStringKind -No description provided
dryRunBooleanKind falseNo description provided
Example
Function Node.publish is not accessible from the node module
func (m *myModule) example(tokenSecret , version )   {
	return dag.
			Node().
			Publish(tokenSecret, version)
}
@function
def example(token_secret: , version: ) -> :
	return (
		dag.node()
		.publish(token_secret, version)
	)
@func()
example(tokenSecret: , version: ):  {
	return dag
		.node()
		.publish(tokenSecret, version)
}

install()

Install adds given package.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
pkgs[StringKind ! ] !-No description provided
Example
Function Node.install is not accessible from the node module
func (m *myModule) example(pkgs )   {
	return dag.
			Node().
			Install(pkgs)
}
@function
def example(pkgs: ) -> :
	return (
		dag.node()
		.install(pkgs)
	)
@func()
example(pkgs: ):  {
	return dag
		.node()
		.install(pkgs)
}