Skip to content

"pub init" #1110

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 Jun 5, 2015 · 5 comments
Closed

"pub init" #1110

DartBot opened this issue Jun 5, 2015 · 5 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 Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/40635?v=3" align="left" width="96" height="96"hspace="10"> Issue by radicaled
Originally opened as dart-lang/sdk#20701


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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2108507?v=3" align="left" width="48" height="48"hspace="10"> Comment by dgrove


Added Area-Pub, Triaged labels.

@DartBot DartBot added closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug labels Jun 5, 2015
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/40635?v=3" align="left" width="48" height="48"hspace="10"> Comment 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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


Issue #34 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 Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/40635?v=3" align="left" width="48" height="48"hspace="10"> Comment 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.

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

1 participant