vite
No long description provided.
Installation
dagger install github.com/crjm/dagger-modules/vite@v0.0.1Entrypoint
Return Type
Vite Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
func (m *MyModule) Example() *dagger.Vite {
return dag.
Vite()
}@function
def example() -> dagger.Vite:
return (
dag.vite()
)@func()
example(): Vite {
return dag
.vite()
}Types
Vite 🔗
source() 🔗
prints the contents of the vite project directory
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dirPath | Directory ! | - | No description provided |
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
source --dir-path DIR_PATHfunc (m *MyModule) Example(dirPath *dagger.Directory) *dagger.Container {
return dag.
Vite().
Source(dirPath)
}@function
def example(dir_path: dagger.Directory) -> dagger.Container:
return (
dag.vite()
.source(dir_path)
)@func()
example(dirPath: Directory): Container {
return dag
.vite()
.source(dirPath)
}installDeps() 🔗
install project dependencies with npm
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dirPath | Directory ! | - | No description provided |
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
install-deps --dir-path DIR_PATHfunc (m *MyModule) Example(dirPath *dagger.Directory) *dagger.Container {
return dag.
Vite().
InstallDeps(dirPath)
}@function
def example(dir_path: dagger.Directory) -> dagger.Container:
return (
dag.vite()
.install_deps(dir_path)
)@func()
example(dirPath: Directory): Container {
return dag
.vite()
.installDeps(dirPath)
}build() 🔗
builds the project and saves the output to /app/dist dir in the container
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dirPath | Directory ! | - | No description provided |
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
build --dir-path DIR_PATHfunc (m *MyModule) Example(dirPath *dagger.Directory) *dagger.Container {
return dag.
Vite().
Build(dirPath)
}@function
def example(dir_path: dagger.Directory) -> dagger.Container:
return (
dag.vite()
.build(dir_path)
)@func()
example(dirPath: Directory): Container {
return dag
.vite()
.build(dirPath)
}