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

docs(CONTRIBUTING): update contributing.md #1973

Merged
merged 3 commits into from
Feb 8, 2018

Conversation

aslushnikov
Copy link
Contributor

No description provided.

CONTRIBUTING.md Outdated
## API guidelines

When authoring new API methods, consider the following:
- expose as little as needed. When in doubt, don't expose
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we still filter?

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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

@aslushnikov aslushnikov merged commit 070243e into puppeteer:master Feb 8, 2018
drew-diamantoukos pushed a commit to drew-diamantoukos/puppeteer that referenced this pull request Feb 9, 2018
- 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)
@aslushnikov aslushnikov deleted the revisit-contrib branch May 9, 2018 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants