Skip to content

Publish to pub.dev, so installing is one command rather than a git activate #11

Description

@saimskywalker

The README already says it: "Not on pub.dev yet, so install it from git". That instruction is four lines of shell and a PATH change, which is enough friction to lose most of the people who would otherwise try it.

Why it matters

pub.dev is where Flutter and Dart developers look. A package there is one dart pub global activate binary_sdk_bridge away, appears in pub.dev search, gets an automatically generated API docs page, and carries a score that signals whether it is maintained.

The current install path also means nobody can pin a version.

Before publishing

  • dart pub publish --dry-run passes
  • topics: in pubspec.yaml, which is pub.dev's main discovery mechanism
  • An example/ directory, since pana scores it and it is the first thing people open
  • Decide the version. 0.1.0 is honest
  • Add the dry run to CI so a broken manifest is caught before a release

Ordering

#4 and #10 both cover the CLI having no tests. Publishing a CLI whose exit codes are unverified is the wrong order, so those probably come first.

Note

pub.dev publication cannot be undone. A version can be retracted, but the package name is permanent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions