frontend
No long description provided.
Installation
dagger install github.com/kpenfound/greetings-api/ci/frontend@08fc0aef402faf8d82361c6cc570d4609a1af6ba
Entrypoint
Return Type
Frontend
Example
func (m *myModule) 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
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Frontend().
UnitTest(ctx, 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
func (m *myModule) 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
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Frontend().
Lint(ctx, 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
func (m *myModule) example(source *Directory) *Service {
return dag.
Frontend().
Serve(source)
}