Skip to content

git-lfs-hub/config

Repository files navigation

@git-lfs-hub/config

Config renderer for git-lfs-hub/deploy. Merges vars.input.json with defaults, validates against a JSON Schema, and renders Handlebars templates into wrangler.jsonc and github-app.md.

Usage

From a deploy checkout (one-shot, no install):

bunx github:git-lfs-hub/config         # init (default)
bunx github:git-lfs-hub/config validate

Or via the deploy root's package.json script:

bun run config

Commands

Command Action
(default) init Read vars.input.json (or vars.json as fallback), merge with package defaults, validate, write vars.json, render wrangler.jsonc (skipped if exists) and github-app.md.
validate Ajv-validate vars.json against the package schema.

Flags

Flag Default Applies to Notes
--cwd <dir> . both Deploy checkout root.
--force off init Overwrite existing wrangler.jsonc.

File contract (cwd)

File Direction Notes
vars.input.json input (preferred) User-edited; resume checkpoint.
vars.json input (fallback) and always output Merged, validated config consumed by deploy. Idempotent on re-run.
server/wrangler.template.jsonc input Handlebars source.
server/github-app.template.md input Handlebars source.
wrangler.jsonc output Created once unless --force.
github-app.md output Regenerated every run.

Starter

Copy vars.input.example.json from this package into your deploy checkout as vars.input.json and edit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors