Skip to main content

dna_dart 2.1.1 copy "dna_dart: ^2.1.1" to clipboard
dna_dart: ^2.1.1 copied to clipboard

The DNA of all of our Dart projects - Dart specific configs, docs and agent skills inherited via helix, layered on top of the ggdna topic layers.

dna_dart #

The DNA of all of our Dart projects. Builds on the ggdna topic layers — see dna_ggdna for the set — and adds the Dart-specific layer, inherited via helix:

  • dna/dot-vscode/settings.overrides.json — Dart editor settings merged into the base settings
  • dna/dot-vscode/extensions.overrides.json — Dart extension recommendations (array join)
  • dna/dot-vscode/launch.json, tasks.json — Dart launch/test tooling
  • dna/test/dna/dna-test.dart — the DNA wrapper test shipped to Dart consumers (instantiated as test/dna/dna_test.dart)

Dotfiles carry a dot- prefix inside dna/ and lose it when instantiated (dna/dot-vscode/… → .vscode/…). Without the escape dart pub publish drops them, and the layer would reach consumers incomplete.

Variables #

  • dnaCopyrightHolder — the name in the license header of every file
  • dnaCompany, dnaGitOrg, dnaGitOrgUrl — the organization
  • dnaGitQuickCheckPipelineName — the name of the quick check pipeline
  • dnaJiraPrefix — the prefix of a ticket id

The topic layers require these in every layer listing them. This layer sets them to ggdna for its own repo and passes the duty on: a layer listing it sets its own values in its own dna/_vars.json.

Usage #

dart pub add dna_dart dev:helix
helix init

The placed test instantiates and verifies the DNA on every test run (the topic layers are pulled in transitively).

Development #

role: "dna" in dna/_dna.json: the dna/ folder is authored by hand. The repo instantiates its own DNA — run dart test after changes; commit first (a file the DNA would overwrite must not carry uncommitted work). During development gg_localize_refs points the layer dependencies at the local checkouts; the DNA config itself never holds paths.

0
likes
160
points
774
downloads

Documentation

API reference

Publisher

verified publisherinlavigo.com

Weekly Downloads

The DNA of all of our Dart projects - Dart specific configs, docs and agent skills inherited via helix, layered on top of the ggdna topic layers.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dna_blog, dna_clean_code, dna_gg, dna_guides, dna_index, dna_install, dna_readme, dna_scripts, dna_translate, dna_vscode

More

Packages that depend on dna_dart