Dagger
Search

vite

No long description provided.

Installation

dagger install github.com/crjm/dagger-modules/vite@v0.0.1

Entrypoint

Return Type
Vite
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
func (m *myModule) example() *Vite  {
	return dag.
			Vite()
}
@function
def example() -> dag.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
NameTypeDefault ValueDescription
dirPathDirectory !-No description provided
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
 source --dir-path DIR_PATH
func (m *myModule) example(dirPath *Directory) *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
NameTypeDefault ValueDescription
dirPathDirectory !-No description provided
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
 install-deps --dir-path DIR_PATH
func (m *myModule) example(dirPath *Directory) *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
NameTypeDefault ValueDescription
dirPathDirectory !-No description provided
Example
dagger -m github.com/crjm/dagger-modules/vite@f5018cbd2adf6f38783cfc07e909c24986fab453 call \
 build --dir-path DIR_PATH
func (m *myModule) example(dirPath *Directory) *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)
}