Dagger
Search

frontend

No long description provided.

Installation

dagger install github.com/kpenfound/greetings-api/ci/frontend@05f845b09ec2aa118a5af3362893e58575d47385

Entrypoint

Return Type
Frontend
Example
func (m *myModule) example() *Frontend  {
	return dag.
			Frontend()
}
@function
def example() -> dag.Frontend:
	return (
		dag.frontend()
	)
@func()
example(): Frontend {
	return dag
		.frontend()
}

Types

Frontend

unitTest()

Test the frontend

Return Type
String !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@05f845b09ec2aa118a5af3362893e58575d47385 call \
 unit-test --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string  {
	return dag.
			Frontend().
			UnitTest(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
	return await (
		dag.frontend()
		.unit_test(dir)
	)
@func()
async example(dir: Directory): Promise<string> {
	return dag
		.frontend()
		.unitTest(dir)
}

build()

Build the frontend hugo static site

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
envString -+default "dev"
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@05f845b09ec2aa118a5af3362893e58575d47385 call \
 build --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Directory  {
	return dag.
			Frontend().
			Build(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Directory:
	return (
		dag.frontend()
		.build(dir)
	)
@func()
example(dir: Directory): Directory {
	return dag
		.frontend()
		.build(dir)
}

lint()

Lint the frontend Go code

Return Type
String !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@05f845b09ec2aa118a5af3362893e58575d47385 call \
 lint --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string  {
	return dag.
			Frontend().
			Lint(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
	return await (
		dag.frontend()
		.lint(dir)
	)
@func()
async example(dir: Directory): Promise<string> {
	return dag
		.frontend()
		.lint(dir)
}

serve()

Get a service to run the frontend webservice

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@05f845b09ec2aa118a5af3362893e58575d47385 call \
 serve --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Service  {
	return dag.
			Frontend().
			Serve(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Service:
	return (
		dag.frontend()
		.serve(dir)
	)
@func()
example(dir: Directory): Service {
	return dag
		.frontend()
		.serve(dir)
}