Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

3. Best practice

Mircea-Tiberiu MATEI edited this page Apr 8, 2019 · 5 revisions

Checks before committing

dartfmt -w --fix src

Committing

All the commits must be prefixed with an issue number. For example for issue #14 do:

git commit -am "#14 Fix"

Debugging

Read about Observatory, a nice debugger and profiler for Dart.

Debugging tests

pub run test --pause-after-load

Publishing

Open an Issue

Open an Issue to track publish steps

Fix format

dartfmt -w --fix src

Update the CHANGELOG.md

Read the guiding principles on https://keepachangelog.com/en/1.0.0/

Update the version

Update the version in src/pubspec.yaml

Dry run

pub publish --dry-run

Just do it

pub publish