Skip to content
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

Improve pulp init to pulp publish workflow #306

Open
Risto-Stevcev opened this issue Sep 26, 2017 · 0 comments
Open

Improve pulp init to pulp publish workflow #306

Risto-Stevcev opened this issue Sep 26, 2017 · 0 comments

Comments

@Risto-Stevcev
Copy link
Contributor

pulp init doesn't provide enough metadata in order to publish a package. The problem is that once a tag gets pushed, say v1.0.0, if the author discovers that there's some metadata missing (like a license or repo field in bower.json), then they have to push a new version v1.0.1, which is ugly and feels like overkill just because some metadata was missing.

Issues #284 and #271 could help with some of this

I think the easiest/cleanest solution is to add additional functionality to pulp init:

  • pulp init will always prompt the license and repository fields for bower.json, since they're necessary for publishing packages.
  • If there's a LICENSE file in the project root, then pulp init reads it and tries to determine which open source license it is and offers that as the default for the prompt.
  • It'll also prompt which name to use in the license, and pulp will read git config user.name and provide that as the default name.
  • Pulp will use git remote get-url origin as the default repository url if there's a git repo in the project root

That way the workflow would just be:

  • Create a github repo, choose a license, and clone it
  • Run pulp init in the project root and just press enter a few times since it'll provide the right defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant