Skip to content

Make pub a pub package #9456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Mar 27, 2013 · 3 comments
Closed

Make pub a pub package #9456

DartBot opened this issue Mar 27, 2013 · 3 comments
Assignees
Labels
closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Mar 27, 2013

This issue was originally filed by @financecoding


In https://github.com/dart-gde/discovery_api_dart_client_generator we have a dart script that automatically versions and commits code to github. Later the script uploads to pub via Process.run() commands. What we have works but a solution where we could import some 'package:pub/...' to handle this for us would be great. I also find that pub has a lot of common and reusable code that others might want to depend on. Pub's design is nice since everything is a library. I have ripped code out of pub for other projects.

https://github.com/financeCoding/discovery_api_dart_client_generator/blob/d263122e29774bc69ab9b84da58837026a6ec88e/tool/update.dart

@dgrove
Copy link
Contributor

dgrove commented Mar 27, 2013

Set owner to @munificent.
Removed Type-Defect label.
Added Type-Enhancement, Area-Pub, Triaged labels.

@munificent
Copy link
Member

What we have works but a solution where we could import some 'package:pub/...' to handle this for us would be great. I also find that pub has a lot of common and reusable code that others might want to depend on. Pub's design is nice since everything is a library.

So there's two separate goals here: 1. A programmatic API to interact with pub. I think #­2435 covers that.

  1. Various useful functionality in pub being available as packages.

We try to do this in general. oauth2, http, scheduled_test, stacktrace, and pathos are all packages of functionality we needed for pub that are available outside of pub. If there's other stuff in pub you'd like to see pulled out, please do file bugs for it. We like code reuse.

In the meantime, I'll mark this as a dupe for the talking to pub itself side.


Added Duplicate label.
Marked as being merged into #2435.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#498.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants