Dagger
Search

node

No long description provided.

Installation

dagger install github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb

Entrypoint

Return Type
Node
Example
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 ctr
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 with-yarn
func (m *myModule) example()   {
	return dag.
			Node().
			WithYarn()
}
@function
def example() -> :
	return (
		dag.node()
		.with_yarn()
	)
@func()
example():  {
	return dag
		.node()
		.withYarn()
}

run() 🔗

Run returns the container with the command set.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
Example
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 run
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 start
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 lint
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 test
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 build
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 -No description provided
Example
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 publish
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 install
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)
}

withVersion() 🔗

WithVersion returns Node container with given image version.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
versionStringKind !-No description provided
Example
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 with-version
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 with-container
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 container
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
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 with-source
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)
}

withNpm() 🔗

WithNpm returns Node container with npm configured as package manager.

Return Type
Node !
Example
dagger -m github.com/sipsma/quartz-technology-daggerverse/node@96cf1889f1a57058a00ab7d3b0fe3e6bfa3c16cb call \
 with-npm
func (m *myModule) example()   {
	return dag.
			Node().
			WithNpm()
}
@function
def example() -> :
	return (
		dag.node()
		.with_npm()
	)
@func()
example():  {
	return dag
		.node()
		.withNpm()
}