-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Inform user of missing properties on publish #815
Conversation
@aeisenberg I was thinking in being more aggressive like |
@satazor Huge 👍 Authors are incredible lazy and that's really the only way. With npm users did a lot of PRs to fix the situation which was great. Though I think we should do both, as the author should get a chance to fix it. |
@sindresorhus not necessary, since register fetches the package to ensure it's valid. So it will make validation anyway. @aeisenberg are you willing to update PR? This is the right place to do it: https://github.com/bower/bower/blob/master/lib/core/resolvers/Resolver.js#L210 Some tests would also be good. |
That's a great idea. I will update the PR with another commit that nags On Fri, Aug 23, 2013 at 3:08 PM, André Cruz notifications@github.comwrote:
|
OK. Updated the pull request to warn users who install packages with missing properties. I kept the original change as well to warn users on publish. Right now, only warning for the main and ignore properties, but it is easy to extend for more, and possible to add more sophisticated checks. A test case is included. I squashed the new changes into the previous commit, so you will have to do a force pull to get the latest without duplicating commits. |
As soon as I sent this, it occurs to me that what I have isn't ideal. Now, the checking logic is duplicated in the publish and install areas. It would be best to pull this out and create some sort of |
@aeisenberg as I said early, there's no necessity to do it in the So there's no necessity for duplicate code, you can completely rollback the |
Fix for issue bower#694. Test case included.
OK. Another change to pull request. remove the check on |
@satazor We do it in http://rails-assets.org for missing main files :) What's the status of this? |
Scheduling on 1.4.0. Who wants to review? |
Commited in 1690dd4 |
Tracking progress moved to #694 |
Initial fix for issue #694
Simple prompt for asking users to create a better bower.json.