Dagger
Search

staydevops-ts

No long description provided.

Installation

dagger install github.com/StaytunedLLP/daggerverse@2907702f89b82d9dbf8246e95ea144852f315b00

Entrypoint

Return Type
StaydevopsTs
Example
dagger -m github.com/StaytunedLLP/daggerverse@2907702f89b82d9dbf8246e95ea144852f315b00 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@2907702f89b82d9dbf8246e95ea144852f315b00 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()
}

gitDiffStaged() 🔗

Retrieves an array of files that are staged for commit.

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- The source directory to check for staged files.
Example
dagger -m github.com/StaytunedLLP/daggerverse@2907702f89b82d9dbf8246e95ea144852f315b00 call \
 git-diff-staged
func (m *MyModule) Example(ctx context.Context) []string  {
	return dag.
			StaydevopsTs().
			GitDiffStaged(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.staydevops_ts()
		.git_diff_staged()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.staydevopsTs()
		.gitDiffStaged()
}

gitDiffPrevious() 🔗

Retrieves an array of files from the previous commit.

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- The source directory to check for files in the previous commit.
Example
dagger -m github.com/StaytunedLLP/daggerverse@2907702f89b82d9dbf8246e95ea144852f315b00 call \
 git-diff-previous
func (m *MyModule) Example(ctx context.Context) []string  {
	return dag.
			StaydevopsTs().
			GitDiffPrevious(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.staydevops_ts()
		.git_diff_previous()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.staydevopsTs()
		.gitDiffPrevious()
}

gitDiffBetweenCommits() 🔗

Retrieves an array of files that have changed between two commits.

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -- The source directory to check for files in the commit range.
commitRangeString !-- A string specifying the range of commits.
Example
dagger -m github.com/StaytunedLLP/daggerverse@2907702f89b82d9dbf8246e95ea144852f315b00 call \
 git-diff-between-commits --commit-range string
func (m *MyModule) Example(ctx context.Context, commitRange string) []string  {
	return dag.
			StaydevopsTs().
			GitDiffBetweenCommits(ctxcommitRange)
}
@function
async def example(commit_range: str) -> List[str]:
	return await (
		dag.staydevops_ts()
		.git_diff_between_commits(commit_range)
	)
@func()
async example(commitRange: string): Promise<string[]> {
	return dag
		.staydevopsTs()
		.gitDiffBetweenCommits(commitRange)
}

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@2907702f89b82d9dbf8246e95ea144852f315b00 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@2907702f89b82d9dbf8246e95ea144852f315b00 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@2907702f89b82d9dbf8246e95ea144852f315b00 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@2907702f89b82d9dbf8246e95ea144852f315b00 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@2907702f89b82d9dbf8246e95ea144852f315b00 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)
}

playwrightTest() 🔗

Run Playwright E2E tests for a package inside the provided source tree.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-- Repository source directory containing Playwright tests.
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 build/test execution.
testSelectorString !""- Optional selector/path passed to the npm test script using `--`.
testScriptString !"test:e2e"- Npm script to run for tests. Defaults to `test:e2e`.
runBuildBoolean !true- When true, runs `npm run build` before executing tests.
registryScopeString !"staytunedllp"- GitHub Packages scope used when authenticating npm.
browsersString !"chromium"- Browser list for Playwright install commands, as a comma-separated string.
Example
dagger -m github.com/StaytunedLLP/daggerverse@2907702f89b82d9dbf8246e95ea144852f315b00 call \
 playwright-test --source DIR_PATH --package-paths string --test-selector string --test-script string --run-build boolean --registry-scope string --browsers string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, packagePaths string, testSelector string, testScript string, runBuild bool, registryScope string, browsers string) string  {
	return dag.
			StaydevopsTs().
			PlaywrightTest(ctx, source, packagePaths, testSelector, testScript, runBuild, registryScope, browsers)
}
@function
async def example(source: dagger.Directory, package_paths: str, test_selector: str, test_script: str, run_build: bool, registry_scope: str, browsers: str) -> str:
	return await (
		dag.staydevops_ts()
		.playwright_test(source, package_paths, test_selector, test_script, run_build, registry_scope, browsers)
	)
@func()
async example(source: Directory, packagePaths: string, testSelector: string, testScript: string, runBuild: boolean, registryScope: string, browsers: string): Promise<string> {
	return dag
		.staydevopsTs()
		.playwrightTest(source, packagePaths, testSelector, testScript, runBuild, registryScope, browsers)
}

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@2907702f89b82d9dbf8246e95ea144852f315b00 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)
}