dna_github 0.0.1
dna_github: ^0.0.1 copied to clipboard
DNA layer: GitHub repository setup (branch rules, PR settings, quick check workflow)
dna_github #
DNA layer: GitHub repository setup (branch rules, PR settings, quick check workflow).
Create a new DNA repo from this template #
- Copy the repo and replace
dna_github/dna-github/dnaTemplateVersioninpubspec.yaml,package.json,README.md,example/,lib/src/andtest/(including the file names) - Set
dnaCopyrightHolderanddnaCompanyindna/_vars.json - Rename
dna/doc/guides/topic-guide.mdanddna/dot-claude/skills/topic/to your topic and fill in the TODOs - Replace the example files in
dna/with your own - Reset
CHANGELOG.md, rundart test, commit
Guides #
dna/doc/guides/topic-guide.md— TODO: what is configured and how to extend or override it
Skills #
/topic— TODO: what the skill does
Layers #
Orthogonal: this layer carries only its own topic and is combined with other layers by the consuming repo.
Variables #
dnaCopyrightHolder— the name in the license header of every filednaCompany— the company name
Usage #
Declare it as a dev-dependency and initialize once:
pnpm add -D @ggdna/dna-github # TypeScript projects
dart pub add dev:dna_github # Dart projects
helix init
The placed test instantiates and verifies the DNA on every test run.
Development #
The dna/ folder is hand-authored source and is never generated. The repo
instantiates its own DNA — run dart test after changes; commit first, a
file the DNA would overwrite must not carry uncommitted work.