node
No long description provided.
Installation
dagger install github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbbEntrypoint
Return Type
Node Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb 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@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
ctrfunc (m *MyModule) Example() *dagger.Container {
return dag.
Node().
Ctr()
}@function
def example() -> dagger.Container:
return (
dag.node()
.ctr()
)@func()
example(): Container {
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@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
with-yarnfunc (m *MyModule) Example() *dagger.Node {
return dag.
Node().
WithYarn()
}@function
def example() -> dagger.Node:
return (
dag.node()
.with_yarn()
)@func()
example(): Node {
return dag
.node()
.withYarn()
}withVersion() 🔗
WithVersion returns Node container with given image version.
Return Type
Node !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
with-version --version stringfunc (m *MyModule) Example(version string) *dagger.Node {
return dag.
Node().
WithVersion(version)
}@function
def example(version: str) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
with-container --ctr IMAGE:TAGfunc (m *MyModule) Example(ctr *dagger.Container) *dagger.Node {
return dag.
Node().
WithContainer(ctr)
}@function
def example(ctr: dagger.Container) -> dagger.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/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
containerfunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
with-source --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Node {
return dag.
Node().
WithSource(source)
}@function
def example(source: dagger.Directory) -> dagger.Node:
return (
dag.node()
.with_source(source)
)@func()
example(source: Directory): Node {
return dag
.node()
.withSource(source)
}withNpm() 🔗
WithNpm returns Node container with npm configured as package manager.
Return Type
Node ! Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
with-npmfunc (m *MyModule) Example() *dagger.Node {
return dag.
Node().
WithNpm()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
run --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.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/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
startfunc (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/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
lintfunc (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() 🔗
Test returns the result of the test executed.
Return Type
String ! Example
dagger -m github.com/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
testfunc (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/TomChv/daggerverse/node@4f06ebb5f74d9325b8be683fd1e0e6ba7f496cbb call \
buildfunc (m *MyModule) Example() *dagger.Node {
return dag.
Node().
Build()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| opts | PublishOpts ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, opts *dagger.NodePublishOpts) string {
return dag.
Node().
Publish(ctx, opts)
}@function
async def example(opts: dagger.NodePublishOpts) -> str:
return await (
dag.node()
.publish(opts)
)@func()
async example(opts: NodePublishOpts): Promise<string> {
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
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(opts *dagger.NodeInstallOpts) *dagger.Node {
return dag.
Node().
Install(opts)
}@function
def example(opts: dagger.NodeInstallOpts) -> dagger.Node:
return (
dag.node()
.install(opts)
)@func()
example(opts: NodeInstallOpts): Node {
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
String ! 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
String ! 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
[String ! ] ! 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