You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
pulp init
doesn't provide enough metadata in order to publish a package. The problem is that once a tag gets pushed, sayv1.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 versionv1.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.pulp init
reads it and tries to determine which open source license it is and offers that as the default for the prompt.git config user.name
and provide that as the default name.git remote get-url origin
as the default repository url if there's a git repo in the project rootThat way the workflow would just be:
The text was updated successfully, but these errors were encountered: