Skip to content

"pub init" #20701

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 Aug 26, 2014 · 6 comments
Closed

"pub init" #20701

DartBot opened this issue Aug 26, 2014 · 6 comments
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 Aug 26, 2014

This issue was originally filed by @radicaled


I think it would be a great addition to Pub if it supported a "pub init" command which generated a Pubspec file and populated it with some default settings for quick editing.

Right now using Dart Editor is the only way to get a "template" pubspec.yaml file.

@dgrove
Copy link
Contributor

dgrove commented Aug 27, 2014

Added Area-Pub, Triaged labels.

@nex3
Copy link
Member

nex3 commented Aug 27, 2014

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

@DartBot
Copy link
Author

DartBot commented Aug 27, 2014

This comment was originally written by @radicaled


I don't think these are duplicate issues.

I'm asking for a skeletal pubspec.yaml template; #­2432 appears to be about generating an entire application directory structure.

This is the equivalent of "npm init" -- generates the package file spec and nothing else.

@nex3
Copy link
Member

nex3 commented Aug 27, 2014

Issue #2432 covers all sorts of scaffold generation, and the resolution is the same: it's something that would be better handled by an external tool.

@DartBot
Copy link
Author

DartBot commented Aug 27, 2014

This comment was originally written by @radicaled


I kinda feel like its not the same, since pubspec.yaml is necessary for pub to function, and a blank or non-existent pubspec.yaml isn't valid. Scaffolding a basic application seems like its on another level.

But it's fine the way it is, I guess.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned 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