Dagger
Search

node

No long description provided.

Installation

dagger install github.com/quartz-technology/daggerverse/node@v0.0.1

Entrypoint

Return Type
Node
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c 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/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 ctr
func (m *myModule) example() *Container  {
	return dag.
			Node().
			Ctr()
}
@function
def example() -> dagger.Container:
	return (
		dag.node()
		.ctr()
	)
@func()
example(): Container {
	return dag
		.node()
		.ctr()
}

withVersion() 🔗

WithVersion returns Node container with given image version.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
versionString !-version to use
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 with-version --version string
func (m *myModule) example(version string) *Node  {
	return dag.
			Node().
			WithVersion(version)
}
@function
def example(version: str) -> dag.Node:
	return (
		dag.node()
		.with_version(version)
	)
@func()
example(version: string): Node {
	return dag
		.node()
		.withVersion(version)
}

withContainer() 🔗

WithContainer returns Node container with the given container.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-container to use in Node.
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 with-container --ctr IMAGE:TAG
func (m *myModule) example(ctr *Container) *Node  {
	return dag.
			Node().
			WithContainer(ctr)
}
@function
def example(ctr: dagger.Container) -> dag.Node:
	return (
		dag.node()
		.with_container(ctr)
	)
@func()
example(ctr: Container): Node {
	return dag
		.node()
		.withContainer(ctr)
}

container() 🔗

Container returns Node container.

Return Type
Container !
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 container
func (m *myModule) example() *Container  {
	return dag.
			Node().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.node()
		.container()
	)
@func()
example(): Container {
	return dag
		.node()
		.container()
}

withSource() 🔗

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

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-source code to add to the Node container
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 with-source --source DIR_PATH
func (m *myModule) example(source *Directory) *Node  {
	return dag.
			Node().
			WithSource(source)
}
@function
def example(source: dagger.Directory) -> dag.Node:
	return (
		dag.node()
		.with_source(source)
	)
@func()
example(source: Directory): Node {
	return dag
		.node()
		.withSource(source)
}

withYarn() 🔗

WithYarn returns Node container with yarn configured as package manager.

Return Type
Node !
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 with-yarn
func (m *myModule) example() *Node  {
	return dag.
			Node().
			WithYarn()
}
@function
def example() -> dag.Node:
	return (
		dag.node()
		.with_yarn()
	)
@func()
example(): Node {
	return dag
		.node()
		.withYarn()
}

withNpm() 🔗

WithNpm returns Node container with npm configured as package manager.

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

run() 🔗

Run returns the container with the command set.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[String ! ] !-arguments to execute
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 run --args string1 --args string2
func (m *myModule) example(args []string) *Container  {
	return dag.
			Node().
			Run(args)
}
@function
def example(args: List[str]) -> dagger.Container:
	return (
		dag.node()
		.run(args)
	)
@func()
example(args: string[]): Container {
	return dag
		.node()
		.run(args)
}

start() 🔗

Start returns the output of the code executed.

Return Type
String !
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 start
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Node().
			Start(ctx)
}
@function
async def example() -> str:
	return await (
		dag.node()
		.start()
	)
@func()
async example(): Promise<string> {
	return dag
		.node()
		.start()
}

lint() 🔗

Lint returns the output of the lint command.

Return Type
String !
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 lint
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Node().
			Lint(ctx)
}
@function
async def example() -> str:
	return await (
		dag.node()
		.lint()
	)
@func()
async example(): Promise<string> {
	return dag
		.node()
		.lint()
}

test() 🔗

Lint returns the output of the lint command.

Return Type
String !
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 test
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Node().
			Test(ctx)
}
@function
async def example() -> str:
	return await (
		dag.node()
		.test()
	)
@func()
async example(): Promise<string> {
	return dag
		.node()
		.test()
}

build() 🔗

Build returns the Container with the source built.

Return Type
Node !
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 build
func (m *myModule) example() *Node  {
	return dag.
			Node().
			Build()
}
@function
def example() -> dag.Node:
	return (
		dag.node()
		.build()
	)
@func()
example(): Node {
	return dag
		.node()
		.build()
}

publish() 🔗

Publish publishes the source code to npm registry.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tokenSecretSecret !-secret token to register to npm registry
versionString !-version of the package
accessString -access permission of the package
dryRunBoolean !falsewhether to do a dry run instead of an actual publish
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 publish --token-secret env:MYSECRET --version string --dry-run boolean
func (m *myModule) example(ctx context.Context, tokenSecret *Secret, version string, dryRun bool) string  {
	return dag.
			Node().
			Publish(ctx, tokenSecret, version, dryRun)
}
@function
async def example(token_secret: dagger.Secret, version: str, dry_run: bool) -> str:
	return await (
		dag.node()
		.publish(token_secret, version, dry_run)
	)
@func()
async example(tokenSecret: Secret, version: string, dryRun: boolean): Promise<string> {
	return dag
		.node()
		.publish(tokenSecret, version, dryRun)
}

install() 🔗

Install adds given package.

Return Type
Node !
Arguments
NameTypeDefault ValueDescription
pkgs[String ! ] !-packages to additionally install
Example
dagger -m github.com/quartz-technology/daggerverse/node@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
 install --pkgs string1 --pkgs string2
func (m *myModule) example(pkgs []string) *Node  {
	return dag.
			Node().
			Install(pkgs)
}
@function
def example(pkgs: List[str]) -> dag.Node:
	return (
		dag.node()
		.install(pkgs)
	)
@func()
example(pkgs: string[]): Node {
	return dag
		.node()
		.install(pkgs)
}