node
No long description provided.
Installation
dagger install github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27eEntrypoint
Return Type
Node Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
func (m *MyModule) Example() *dagger.Node {
return dag.
Node()
}@function
def example() -> dagger.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/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
ctrfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | StringKind ! | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
with-versionfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
with-containerfunc (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/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
containerfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
with-sourcefunc (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
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
with-yarnfunc (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
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
with-npmfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
runfunc (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/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
startfunc (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/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
lintfunc (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
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
testfunc (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/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
buildfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| tokenSecret | Secret ! | - | No description provided |
| version | StringKind ! | - | No description provided |
| access | StringKind | - | No description provided |
| dryRun | BooleanKind | false | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
publishfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| pkgs | [StringKind ! ] ! | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/node/typescript@f9338ce6a760cc6cc8cc04e5fa39228f029ea27e call \
installfunc (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)
}