Dagger
Search

staydevops-ts

No long description provided.

Installation

dagger install github.com/StaytunedLLP/daggerverse@v1.0.5

Entrypoint

Return Type
StaydevopsTs
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
func (m *MyModule) Example() *dagger.StaydevopsTs  {
	return dag.
			StaydevopsTs()
}
@function
def example() -> dagger.StaydevopsTs:
	return (
		dag.staydevops_ts()
	)
@func()
example(): StaydevopsTs {
	return dag
		.staydevopsTs()
}

Types

StaydevopsTs 🔗

Shared Dagger module for Node/TypeScript repository checks and deployment helpers.

format() 🔗

Run the repository formatting check with npm run format:check.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- Repository source directory to validate.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 format
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			StaydevopsTs().
			Format(ctx)
}
@function
async def example() -> None:
	return await (
		dag.staydevops_ts()
		.format()
	)
@func()
async example(): Promise<void> {
	return dag
		.staydevopsTs()
		.format()
}

lint() 🔗

Run the repository linter with npm run lint.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- Repository source directory to lint.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 lint
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			StaydevopsTs().
			Lint(ctx)
}
@function
async def example() -> None:
	return await (
		dag.staydevops_ts()
		.lint()
	)
@func()
async example(): Promise<void> {
	return dag
		.staydevopsTs()
		.lint()
}

build() 🔗

Run the repository build with npm run build.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- Repository source directory to build.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 build
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			StaydevopsTs().
			Build(ctx)
}
@function
async def example() -> None:
	return await (
		dag.staydevops_ts()
		.build()
	)
@func()
async example(): Promise<void> {
	return dag
		.staydevopsTs()
		.build()
}

test() 🔗

Run the repository test suite with npm run test.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- Repository source directory to test.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 test
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			StaydevopsTs().
			Test(ctx)
}
@function
async def example() -> None:
	return await (
		dag.staydevops_ts()
		.test()
	)
@func()
async example(): Promise<void> {
	return dag
		.staydevopsTs()
		.test()
}

verifyChromiumBidi() 🔗

Validate that chromium-bidi is installed in the selected package path.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-- Repository source directory that contains the package to inspect.
nodeAuthTokenSecret -- Optional GitHub Packages token secret. Required only when installing private npm packages.
packagePathsString !"."- Package path or comma-separated package paths relative to the source root. The first path is used for the chromium-bidi check.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 verify-chromium-bidi --source DIR_PATH --package-paths string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, packagePaths string) string  {
	return dag.
			StaydevopsTs().
			VerifyChromiumBidi(ctx, source, packagePaths)
}
@function
async def example(source: dagger.Directory, package_paths: str) -> str:
	return await (
		dag.staydevops_ts()
		.verify_chromium_bidi(source, package_paths)
	)
@func()
async example(source: Directory, packagePaths: string): Promise<string> {
	return dag
		.staydevopsTs()
		.verifyChromiumBidi(source, packagePaths)
}

prepareNodeWorkspace() 🔗

Install Node dependencies and optionally provision Playwright and Firebase tooling.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-- Repository source directory to install into the workspace container.
nodeAuthTokenSecret -- Optional GitHub Packages token secret. Required only when installing private npm packages.
packagePathsString !"."- Package path or comma-separated package paths relative to the source root where npm installs should run.
playwrightInstallBoolean !false- When true, installs Playwright system dependencies and Chromium into the prepared workspace.
firebaseToolsBoolean !false- When true, installs Firebase CLI tooling in the prepared workspace container.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 prepare-node-workspace --source DIR_PATH --package-paths string --playwright-install boolean --firebase-tools boolean
func (m *MyModule) Example(source *dagger.Directory, packagePaths string, playwrightInstall bool, firebaseTools bool) *dagger.Directory  {
	return dag.
			StaydevopsTs().
			PrepareNodeWorkspace(source, packagePaths, playwrightInstall, firebaseTools)
}
@function
def example(source: dagger.Directory, package_paths: str, playwright_install: bool, firebase_tools: bool) -> dagger.Directory:
	return (
		dag.staydevops_ts()
		.prepare_node_workspace(source, package_paths, playwright_install, firebase_tools)
	)
@func()
example(source: Directory, packagePaths: string, playwrightInstall: boolean, firebaseTools: boolean): Directory {
	return dag
		.staydevopsTs()
		.prepareNodeWorkspace(source, packagePaths, playwrightInstall, firebaseTools)
}

deployWebhosting() 🔗

Build and deploy a Firebase web hosting project from the provided source tree.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-- Repository source directory containing the Firebase project and any frontend or backend packages.
projectIdString !-- Firebase project ID used for the deploy command and frontend environment generation.
gcpCredentialsSecret !-- GCP service account JSON secret used for Firebase deployment authentication.
appIdString -- Optional Firebase app ID to inject into frontend environment variables before building.
onlyString -- Optional Firebase deploy target selector passed to `firebase deploy --only`.
frontendDirString -- Optional frontend package directory to build before deployment, relative to the source root.
backendDirString -- Optional backend or secondary package directory whose dependencies should be installed before deployment.
firebaseDirString -- Optional directory containing `firebase.json`. Defaults to the workspace root.
webappConfigSecret -- Optional secret containing Firebase web app config JSON to write into frontend environment variables.
extraEnvSecret -- Optional secret containing extra `.env` lines appended before the frontend build runs.
nodeAuthTokenSecret -- Optional GitHub Packages token secret. Required only when frontend or backend installs private npm packages.
Example
dagger -m github.com/StaytunedLLP/daggerverse@3514c399e7d57ba2f0a28a9d748353b0ea614f08 call \
 deploy-webhosting --source DIR_PATH --project-id string --gcp-credentials env:MYSECRET
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, projectId string, gcpCredentials *dagger.Secret) string  {
	return dag.
			StaydevopsTs().
			DeployWebhosting(ctx, source, projectId, gcpCredentials)
}
@function
async def example(source: dagger.Directory, project_id: str, gcp_credentials: dagger.Secret) -> str:
	return await (
		dag.staydevops_ts()
		.deploy_webhosting(source, project_id, gcp_credentials)
	)
@func()
async example(source: Directory, projectId: string, gcpCredentials: Secret): Promise<string> {
	return dag
		.staydevopsTs()
		.deployWebhosting(source, projectId, gcpCredentials)
}