Dagger
Search

node

No long description provided.

Installation

dagger install github.com/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259

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()
}

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()
}

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)
}

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() 🔗

Test returns the result of the test executed.

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
optsPublishOpts !-No description provided
Example
Function Node.publish is not accessible from the node module
func (m *myModule) example(opts )   {
	return dag.
			Node().
			Publish(opts)
}
@function
def example(opts: ) -> :
	return (
		dag.node()
		.publish(opts)
	)
@func()
example(opts: ):  {
	return dag
		.node()
		.publish(opts)
}

install() 🔗

Install adds given package.

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

PublishOpts 🔗

token() 🔗

Return Type
Secret !
Example
Function NodePublishOpts.Token is not accessible from the node module
Function NodePublishOpts.Token is not accessible from the node module
Function NodePublishOpts.Token is not accessible from the node module
Function NodePublishOpts.Token is not accessible from the node module

version() 🔗

Return Type
StringKind !
Example
Function NodePublishOpts.Version is not accessible from the node module
Function NodePublishOpts.Version is not accessible from the node module
Function NodePublishOpts.Version is not accessible from the node module
Function NodePublishOpts.Version is not accessible from the node module

access() 🔗

Return Type
StringKind !
Example
Function NodePublishOpts.Access is not accessible from the node module
Function NodePublishOpts.Access is not accessible from the node module
Function NodePublishOpts.Access is not accessible from the node module
Function NodePublishOpts.Access is not accessible from the node module

InstallOpts 🔗

pkg() 🔗

Return Type
[StringKind ! ] !
Example
Function NodeInstallOpts.Pkg is not accessible from the node module
Function NodeInstallOpts.Pkg is not accessible from the node module
Function NodeInstallOpts.Pkg is not accessible from the node module
Function NodeInstallOpts.Pkg is not accessible from the node module