Dagger
Search

astro-pwa

CI pipeline for Astro Progressive Web Apps (ncert-textbooks-app,
janaushdhi-medicine-finder-app, lore-app).

All script runs use `pnpm run --if-present` — missing scripts are no-ops.
MegaLinter is opt-in (not part of default ci()).

Installation

dagger install github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b

Entrypoint

Return Type
AstroPwa
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
func (m *MyModule) Example() *dagger.AstroPwa  {
	return dag.
			Astropwa()
}
@function
def example() -> dagger.AstroPwa:
	return (
		dag.astro_pwa()
	)
@func()
example(): AstroPwa {
	return dag
		.astroPwa()
}

Types

AstroPwa 🔗

lint() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
 lint --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Astropwa().
			Lint(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.astro_pwa()
		.lint(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.astroPwa()
		.lint(source)
}

typecheck() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
 typecheck --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Astropwa().
			Typecheck(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.astro_pwa()
		.typecheck(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.astroPwa()
		.typecheck(source)
}

test() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
 test --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Astropwa().
			Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.astro_pwa()
		.test(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.astroPwa()
		.test(source)
}

build() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
 build --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Directory  {
	return dag.
			Astropwa().
			Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
	return (
		dag.astro_pwa()
		.build(source)
	)
@func()
example(source: Directory): Directory {
	return dag
		.astroPwa()
		.build(source)
}

megalint() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
 megalint --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Astropwa().
			Megalint(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.astro_pwa()
		.megalint(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.astroPwa()
		.megalint(source)
}

ci() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/chirag127/workflows/dagger/astro-pwa@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
 ci --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Astropwa().
			Ci(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.astro_pwa()
		.ci(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.astroPwa()
		.ci(source)
}