Docs: How to publish a package to `pub.dev`
nelsonic opened this issue ยท 13 comments
We have published packages in several languages most recently in Elixir
and JavaScript
and documented the process extensively: code-reuse-hexpm.md
Todo
- Create a new branch e.g:
publishing-packages
and immediately create a new Pull Request - Create a new file:
publishing-packages-pub-dev.md
- Document the process of creating a basic
dart
package e.g: dwyl/dart_cid#1Starting point: https://dart.dev/tools/pub/publishing
- Assign the PR for review.
Reading the docs now: https://dart.dev/tools/pub/publishing ๐
Focus on creating a verified publisher. That way I can use my personal account to publish packages at whim and transfer it to the verified dwyl
publisher.
This is a bit of a detour / side-quest ... dwyl/hq#573
Continue: https://pub.dev/my-publishers โณ
dart pub publish --dry-run
Output:
Publishing dart_multihash 0.0.1 to https://pub.dartlang.org:
|-- .github
| '-- ci.yml
|-- .gitignore
|-- CHANGELOG.md
|-- LICENSE
|-- README.md
|-- analysis_options.yaml
|-- dart_multihash.iml
|-- lib
| |-- dart_multihash.dart
| '-- src
| |-- constants.dart
| |-- models.dart
| '-- varintUtils.dart
|-- pubspec.yaml
'-- test
|-- dart_multihash_test.dart
'-- dart_varint_test.dart
Package has 0 warnings.
@LuchoTurtle please see: dwyl/dart_multihash#1 (comment) ๐
Still BLOCKED
? โณ
Created the PR that fixes this issue.
Adds a new file detailing the steps to getting a package published.
Thanks. Will take a look when back at my desk. ๐