repo.svelte.ts

view source

Declarations
#

5 declarations

Repo
#

repo.svelte.ts view source

import {Repo} from '@fuzdev/fuz_repos/repo.svelte.js';

Runtime repo with Library composition for package metadata.

Wraps a Library instance and adds GitHub-specific data (CI status, PRs). Convenience getters delegate to this.library.* for common properties.

library

type Library

readonly

package_json

The repo's full package.json (with dependencies/devDependencies).

type PackageJson

readonly

branch

The branch CI status was fetched for and the dashboard links to.

type string

readonly

check_runs

type GithubCheckRunsItem | null

pull_requests

type GithubPullRequest[] | null

constructor

type new (repo_json: RepoJson): Repo

repo_json

name

type string

getter

repo_name

type string

getter

repo_url

type Url

getter

homepage_url

type Url | null

getter

logo_url

type Url | null

getter

logo_alt

type string

getter

npm_url

type Url | null

getter

changelog_url

type Url | null

getter

pkg_json

Curated package identity, delegating to library. Distinct from the full package_json.

type PkgJson

getter

source_json

type SourceJson

getter

RepoJson
#

repo.svelte.ts view source

RepoJson import type {RepoJson} from '@fuzdev/fuz_repos/repo.svelte.js';

Serialized repo data as stored in repos.ts (JSON).

package_json is the repo's full package.json, carried alongside library_json because fuz_repos reads dependencies/devDependencies for the publishing cascade — fields the curated LibraryJson.pkg_json omits.

library_json

type LibraryJson

package_json

type PackageJson

branch?

The branch the repo's registry entry follows, which check_runs was fetched for. Repo.branch reads main when it's absent.

type string

check_runs

type GithubCheckRunsItem | null

pull_requests

type GithubPullRequest[] | null

Repos
#

repos_context
#

repo.svelte.ts view source

{ get: (error_message?: string | undefined) => Repos; get_maybe: () => Repos | undefined; set: (value: Repos) => Repos; } import {repos_context} from '@fuzdev/fuz_repos/repo.svelte.js';

repos_parse
#

repo.svelte.ts view source

(repos: Repo[], homepage_url: string): Repos import {repos_parse} from '@fuzdev/fuz_repos/repo.svelte.js';

repos

type Repo[]

homepage_url

type string

returns

Repos

Depends on
#

Imported by
#