-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
docs(CONTRIBUTING): update contributing.md #1973
Conversation
CONTRIBUTING.md
Outdated
## API guidelines | ||
|
||
When authoring new API methods, consider the following: | ||
- expose as little as needed. When in doubt, don't expose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expose as little information as needed. When in doubt, don’t expose new information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
``` | ||
npm run unit -- --filter=waitFor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we still filter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't. Though it's trivial to implement if we ever need it back.
- expose as little information as needed. When in doubt, don’t expose new information | ||
- methods are used in favor of getters/setters | ||
- the only exception is namespaces, e.g. `page.keyboard` and `page.coverage` | ||
- all string literals must be small case. This includes event names and option values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There have been questions in slack about adding new sugar apis (page.exist()
). It might be nice to call out a bullet that discusses our philosophy on adding new apis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ebidel good point; added a note
- Adding missing language tags to markdown code blocks. - Switching `npm` to `yarn` in README to be consistent with what repo is using locally/with travis. Removed unneeded and for yarn command per code review Also removing from travis and appveyor yarn invocations Fixed merge conflicts and yarn references Removed yarn.lock and added language to code fence Cheeky capital letter Touched up numbering (and also switched git email account due to CLA mis-match) feat(Page): add `setCacheEnabled(enabled)` to Page object (puppeteer#1609) This change adds in the `Page.setCacheEnabled(enabled)` method to toggle ignoring cache for each request. Fixes puppeteer#1556. docs(CONTRIBUTING): update contributing.md (puppeteer#1973)
No description provided.