nodejs
No long description provided.
Installation
dagger install github.com/RawkodeAcademy/Daggerverse/nodejs@ff706399342d5a5813aee6e621577a11ec7a64f5
Entrypoint
Return Type
Nodejs
Example
dagger -m github.com/RawkodeAcademy/Daggerverse/nodejs@ff706399342d5a5813aee6e621577a11ec7a64f5 call \
func (m *myModule) example() *Nodejs {
return dag.
Nodejs()
}
@function
def example() -> dag.Nodejs:
return (
dag.nodejs()
)
@func()
example(): Nodejs {
return dag
.nodejs()
}
Types
Nodejs 🔗
withBun() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directory | Directory ! | - | No description provided |
version | String ! | "latest" | No description provided |
Example
dagger -m github.com/RawkodeAcademy/Daggerverse/nodejs@ff706399342d5a5813aee6e621577a11ec7a64f5 call \
with-bun --directory DIR_PATH --version string
func (m *myModule) example(directory *Directory, version string) *Container {
return dag.
Nodejs().
WithBun(directory, version)
}
@function
def example(directory: dagger.Directory, version: str) -> dagger.Container:
return (
dag.nodejs()
.with_bun(directory, version)
)
@func()
example(directory: Directory, version: string): Container {
return dag
.nodejs()
.withBun(directory, version)
}
withNpm() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directory | Directory ! | - | No description provided |
version | String ! | "latest" | No description provided |
Example
dagger -m github.com/RawkodeAcademy/Daggerverse/nodejs@ff706399342d5a5813aee6e621577a11ec7a64f5 call \
with-npm --directory DIR_PATH --version string
func (m *myModule) example(directory *Directory, version string) *Container {
return dag.
Nodejs().
WithNpm(directory, version)
}
@function
def example(directory: dagger.Directory, version: str) -> dagger.Container:
return (
dag.nodejs()
.with_npm(directory, version)
)
@func()
example(directory: Directory, version: string): Container {
return dag
.nodejs()
.withNpm(directory, version)
}