node
No long description provided.
Installation
dagger install github.com/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259Entrypoint
Return Type
Node Example
dagger -m github.com/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 call \
ctrfunc (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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 call \
with-npmfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | StringKind ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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)
}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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 call \
lintfunc (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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 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 |
|---|---|---|---|
| opts | PublishOpts ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 call \
publishfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| opts | InstallOpts ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@75a467d7c53912218ce490a7e0c2f3ac0d9b4259 call \
installfunc (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 moduleFunction NodePublishOpts.Token is not accessible from the node moduleFunction NodePublishOpts.Token is not accessible from the node moduleFunction NodePublishOpts.Token is not accessible from the node moduleversion() 🔗
Return Type
StringKind ! Example
Function NodePublishOpts.Version is not accessible from the node moduleFunction NodePublishOpts.Version is not accessible from the node moduleFunction NodePublishOpts.Version is not accessible from the node moduleFunction NodePublishOpts.Version is not accessible from the node moduleaccess() 🔗
Return Type
StringKind ! Example
Function NodePublishOpts.Access is not accessible from the node moduleFunction NodePublishOpts.Access is not accessible from the node moduleFunction NodePublishOpts.Access is not accessible from the node moduleFunction NodePublishOpts.Access is not accessible from the node moduleInstallOpts 🔗
pkg() 🔗
Return Type
[StringKind ! ] ! Example
Function NodeInstallOpts.Pkg is not accessible from the node moduleFunction NodeInstallOpts.Pkg is not accessible from the node moduleFunction NodeInstallOpts.Pkg is not accessible from the node moduleFunction NodeInstallOpts.Pkg is not accessible from the node module