frontend
No long description provided.
Installation
dagger install github.com/kpenfound/greetings-api/ci/frontend@01751b3927c620986f196fea7baf62a12e5b0cb8
Entrypoint
Return Type
Frontend
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@01751b3927c620986f196fea7baf62a12e5b0cb8 call \
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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@01751b3927c620986f196fea7baf62a12e5b0cb8 call \
unit-test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Frontend().
UnitTest(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.frontend()
.unit_test(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.frontend()
.unitTest(source)
}
build() 🔗
Build the frontend hugo static site
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
env | String | - | +default "dev" |
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@01751b3927c620986f196fea7baf62a12e5b0cb8 call \
build --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory {
return dag.
Frontend().
Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.frontend()
.build(source)
)
@func()
example(source: Directory): Directory {
return dag
.frontend()
.build(source)
}
lint() 🔗
Lint the frontend Go code
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@01751b3927c620986f196fea7baf62a12e5b0cb8 call \
lint --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Frontend().
Lint(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.frontend()
.lint(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.frontend()
.lint(source)
}
serve() 🔗
Get a service to run the frontend webservice
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/greetings-api/ci/frontend@01751b3927c620986f196fea7baf62a12e5b0cb8 call \
serve --source DIR_PATH
func (m *myModule) example(source *Directory) *Service {
return dag.
Frontend().
Serve(source)
}
@function
def example(source: dagger.Directory) -> dagger.Service:
return (
dag.frontend()
.serve(source)
)
@func()
example(source: Directory): Service {
return dag
.frontend()
.serve(source)
}