dwyl / learn-dart

🎯Learn the Dart programming language to build cross-platform (Mobile, Web & Desktop) Apps with Flutter!
GNU General Public License v2.0
32 stars 8 forks source link

Docs: How to publish a package to `pub.dev` #22

Closed nelsonic closed 1 year ago

nelsonic commented 1 year ago

We have published packages in several languages most recently in Elixir and JavaScript and documented the process extensively: code-reuse-hexpm.md

Todo

nelsonic commented 1 year ago

Reading the docs now: https://dart.dev/tools/pub/publishing πŸ‘€

LuchoTurtle commented 1 year ago

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.

nelsonic commented 1 year ago

image

nelsonic commented 1 year ago

This is a bit of a detour / side-quest ... https://github.com/dwyl/hq/issues/573

nelsonic commented 1 year ago

image

Error:

image

nelsonic commented 1 year ago

Looks like it's a waiting game ... ⏳

image

Going to have to let this work in the background while I get some sleep ... 😴

nelsonic commented 1 year ago

Continue: https://pub.dev/my-publishers ⏳

nelsonic commented 1 year ago

Appears to have worked. 🀞

image

An example of a Pointless/Terrible use of a Modal πŸ€¦β€β™‚οΈ

nelsonic commented 1 year ago
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.
nelsonic commented 1 year ago

@LuchoTurtle please see: https://github.com/dwyl/dart_multihash/issues/1#issuecomment-1331458151 πŸ™

nelsonic commented 1 year ago

Still BLOCKED? ⏳

LuchoTurtle commented 1 year ago

Created the PR that fixes this issue. Adds a new file detailing the steps to getting a package published.

https://github.com/dwyl/learn-dart/pull/23

nelsonic commented 1 year ago

Thanks. Will take a look when back at my desk. πŸ‘Œ